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>
This commit is contained in:
parent
b4fff5f8bf
commit
29166107fd
1 changed files with 1 additions and 2 deletions
|
@ -463,8 +463,7 @@ static int bnx2x_vfop_qdtor_cmd(struct bnx2x *bp,
|
||||||
return bnx2x_vfop_transition(bp, vf, bnx2x_vfop_qdtor,
|
return bnx2x_vfop_transition(bp, vf, bnx2x_vfop_qdtor,
|
||||||
cmd->block);
|
cmd->block);
|
||||||
}
|
}
|
||||||
DP(BNX2X_MSG_IOV, "VF[%d] failed to add a vfop. rc %d\n",
|
DP(BNX2X_MSG_IOV, "VF[%d] failed to add a vfop.\n", vf->abs_vfid);
|
||||||
vf->abs_vfid, vfop->rc);
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue