qlcnic: Fix panic while dumping TX queues on TX timeout
authorManish Chopra <manish.chopra@qlogic.com>
Tue, 6 May 2014 07:46:48 +0000 (03:46 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 May 2014 20:53:14 +0000 (16:53 -0400)
commitd5d2bf3eabb34cc8eaf54db37fdc43f04267985a
tree0bf5757d167b90b762e6b66488d29cd00b9a4deb
parent76a691d0ab71a244f7582a5b0387728befbdb52f
qlcnic: Fix panic while dumping TX queues on TX timeout

o In case of non-multi TX queue mode driver does not initialize "crb_intr_mask" pointer
  and driver was accessing that un-initialized pointer while dumping TX queue.
  So dump "crb_intr_mask" only when it is initilaized.

Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c