qlcnic: Fix panic while setting VF's MAC address
authorManish Chopra <manish.chopra@qlogic.com>
Fri, 19 Jul 2013 20:56:30 +0000 (16:56 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Jul 2013 00:08:16 +0000 (17:08 -0700)
commitcab150b5874babb0a3d558c10d28c936fdf6ac69
treeeffb9ef8396bfce9152002c60c2b84c0624b6c1c
parent8dc394af2e6159d3799b1219625db47c42a1964f
qlcnic: Fix panic while setting VF's MAC address

o "qlcnic_sriov" structure pointer should be accessed only
  when SR-IOV is enabled. Access this pointer after SR-IOV
  PF check.

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