]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit36d4b533f8455bb55d279ddc43d8b194af0dec30
tree82ba2e31d52bf5e6ee5c0d56834fe23f6d5734d0
parent6bb21231278637b6c460c5015c3949ae04cc712b
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