summaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen
diff options
context:
space:
mode:
authorAmit Kumar Salecha <amit.salecha@qlogic.com>2010-02-02 04:16:21 +0000
committerDavid S. Miller <davem@davemloft.net>2010-02-03 19:15:24 -0800
commite15eec2805565c7e31dbe402215637012f1e4616 (patch)
tree82ba2e31d52bf5e6ee5c0d56834fe23f6d5734d0 /drivers/net/netxen
parent41f3e0b1f524c47908e944a7e55f11c371ddddec (diff)
downloadop-kernel-dev-e15eec2805565c7e31dbe402215637012f1e4616.zip
op-kernel-dev-e15eec2805565c7e31dbe402215637012f1e4616.tar.gz
netxen: protect resource cleanup by rtnl lock
o context resources can be in used, while resource cleanup is in progress, during fw recover. o Null pointer execption can occur in send_cmd_desc, if fw recovery module frees tx ring without rtnl lock. o Same applies to ethtool register dump. Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen')
-rw-r--r--drivers/net/netxen/netxen_nic_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
index 5209095..24279e6 100644
--- a/drivers/net/netxen/netxen_nic_main.c
+++ b/drivers/net/netxen/netxen_nic_main.c
@@ -2240,7 +2240,9 @@ netxen_detach_work(struct work_struct *work)
netxen_nic_down(adapter, netdev);
+ rtnl_lock();
netxen_nic_detach(adapter);
+ rtnl_unlock();
status = NXRD32(adapter, NETXEN_PEG_HALT_STATUS1);
OpenPOWER on IntegriCloud