qlcnic: protect resoruce cleanup by rtnl lock
authorAmit Kumar Salecha <amit.salecha@qlogic.com>
Mon, 1 Feb 2010 05:24:57 +0000 (05:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Feb 2010 23:55:45 +0000 (15:55 -0800)
commitce6684433fb277406dd861fd8a17133253e7c367
treed3734121875c91d01d37e448da2d1c34ba7c274a
parent1b95a839587f40abab2f9cb3e5254dc821b9829b
qlcnic: protect resoruce cleanup by rtnl lock

o context resources can be in used, while resoruce 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 and FW health registers should be dump
  in any case.

Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic_ethtool.c
drivers/net/qlcnic/qlcnic_main.c