diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-01-08 03:42:14 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-09 23:53:26 -0800 |
commit | 29166107fd34a4d180c1adaaaccab0c050defc2e (patch) | |
tree | 3ac612492ddac318d9d01dcdee0f614b744fed41 | |
parent | b4fff5f8bf32766ecaa4af6d5c7ef7f0ffb88ed2 (diff) | |
download | op-kernel-dev-29166107fd34a4d180c1adaaaccab0c050defc2e.zip op-kernel-dev-29166107fd34a4d180c1adaaaccab0c050defc2e.tar.gz |
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>
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c index f2f5c8e..08db503 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c @@ -463,8 +463,7 @@ static int bnx2x_vfop_qdtor_cmd(struct bnx2x *bp, return bnx2x_vfop_transition(bp, vf, bnx2x_vfop_qdtor, cmd->block); } - DP(BNX2X_MSG_IOV, "VF[%d] failed to add a vfop. rc %d\n", - vf->abs_vfid, vfop->rc); + DP(BNX2X_MSG_IOV, "VF[%d] failed to add a vfop.\n", vf->abs_vfid); return -ENOMEM; } |