netxen: protect device reset by rtnl_lock
authorAmit Kumar Salecha <amit.salecha@qlogic.com>
Sat, 5 Dec 2009 12:23:54 +0000 (12:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Dec 2009 04:37:45 +0000 (20:37 -0800)
commit6f7714196b4e01d7462df31d705c3ca53ecbdfc1
tree54dc8ba18ba5d1db10eaa5f79b6a002a9b9acdfb
parenta29ec08a1b649436248c140a3bc389bc11434c94
netxen: protect device reset by rtnl_lock

o To prevent race conditions with other reset events.
  During suspend/resume and firmware recovery, acquire rtnl_lock,
  while changing interface state.

Acked-by: Dhananjay Phadke <dhananjay.phadke@qlogic.com>
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