Skip to contentSkip to conversation

cxgb4 : Fix missing initialization of win0_lock

PATCH In review Anish Bhatt 2 participants 2 messages Oct 30, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cxgb4 : Fix missing initialization of win0_lock

win0_lock was being used un-initialized, resulting in warning traces being seen when lock debugging is enabled (and just wrong)

Fixes fc5ab0209650 ('cxgb4: Replaced the backdoor mechanism to access the HW

memory with PCIe Window method')

---
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +1 -0
index 97683c1..8520d55 100644
@@ -6614,6 +6614,7 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 
 	spin_lock_init(&adapter->stats_lock);
 	spin_lock_init(&adapter->tid_release_lock);
+	spin_lock_init(&adapter->win0_lock);
 
 	INIT_WORK(&adapter->tid_release_task, process_tid_release_list);
 	INIT_WORK(&adapter->db_full_task, process_db_full);
Signature · 1 line
2.1.2
maintainer
#1 lore raw

From: Anish Bhatt <[email protected]>
Date: Wed, 29 Oct 2014 17:54:03 -0700

Quoted 8 lines

win0_lock was being used un-initialized, resulting in warning traces being seen when lock debugging is enabled (and just wrong)

Fixes fc5ab0209650 ('cxgb4: Replaced the backdoor mechanism to access the HW

memory with PCIe Window method')

Applied and queued up for -stable, thanks.