bnx2x: avoid null pointer dereference when enabling SR-IOV
authorMichal Kalderon <michals@broadcom.com>
Wed, 4 Dec 2013 10:04:54 +0000 (12:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Dec 2013 01:56:56 +0000 (20:56 -0500)
commitc8781cf4a309ae4d1393f5878d4e51987665898c
treea01c30a70e41a942c5c8f69f05235d30c4ab9d84
parent78ac814f120da17053b3d52aa215c7c547c5e77d
bnx2x: avoid null pointer dereference when enabling SR-IOV

Fixed NULL pointer dereference when dynamically activating SR-IOV after vf
database failed to be allocated in probe stage (for example due to no ARI
support in pci hub).

Signed-off-by: Michal Kalderon <michals@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c