summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorAnish Bhatt <anish@chelsio.com>2014-10-29 17:54:03 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-14 10:10:21 -0800
commit8400be4d70d0894447986843b509d3c2cf50257c (patch)
treeeb4ef21b806d1d92a77abee7c11886dc563fb328 /drivers/net
parent5569bca0d2d1dea7146c86c2863a8e053040328b (diff)
downloadlwn-8400be4d70d0894447986843b509d3c2cf50257c.tar.gz
lwn-8400be4d70d0894447986843b509d3c2cf50257c.zip
cxgb4 : Fix missing initialization of win0_lock
[ Upstream commit e327c225c911529898ec300cb96d2088893de3df ] 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') Signed-off-by: Anish Bhatt <anish@chelsio.com> Signed-off-by: Casey Leedom <leedom@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
index e5be511a3c38..fac3821cef87 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -6557,6 +6557,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);