qlcnic: Fix NULL pointer dereference in VF probe path.
authorSucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Fri, 19 Jul 2013 20:56:28 +0000 (16:56 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Jul 2013 00:08:16 +0000 (17:08 -0700)
commite9a355a9b407da41b7cb22767f3898d4628411b2
tree588a3554475da0ebc1b1c477d71cfb6de1b65bce
parentcfacb172fa699263a4f74a63d886e171fe3eafbe
qlcnic: Fix NULL pointer dereference in VF probe path.

o Check for non-NULL set_mac_filter_count function pointer
  before calling it fixes the panic.

This patch fixes regression introduced by patch
"qlcnic: Secondary unicast MAC address support." with
commit id 168e4fb54c11865668ad50eff81b5f2729e0e0f4.

Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h