netxen: protect resource cleanup by rtnl lock
authorAmit Kumar Salecha <amit.salecha@qlogic.com>
Tue, 2 Feb 2010 04:16:21 +0000 (04:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Feb 2010 03:15:24 +0000 (19:15 -0800)
commite15eec2805565c7e31dbe402215637012f1e4616
tree82ba2e31d52bf5e6ee5c0d56834fe23f6d5734d0
parent41f3e0b1f524c47908e944a7e55f11c371ddddec
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>
drivers/net/netxen/netxen_nic_main.c