Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bnx2x: NULL dereference on error in debug code

"vfop" is NULL here. I've changed the debugging to not use it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Ariel Elior <ariele@broadcom.com>
Acked-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Dan Carpenter and committed by
David S. Miller
29166107 b4fff5f8

+1 -2
+1 -2
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c
··· 463 463 return bnx2x_vfop_transition(bp, vf, bnx2x_vfop_qdtor, 464 464 cmd->block); 465 465 } 466 - DP(BNX2X_MSG_IOV, "VF[%d] failed to add a vfop. rc %d\n", 467 - vf->abs_vfid, vfop->rc); 466 + DP(BNX2X_MSG_IOV, "VF[%d] failed to add a vfop.\n", vf->abs_vfid); 468 467 return -ENOMEM; 469 468 } 470 469