Skip to content

Commit d33d19d

Browse files
smalin1davem330
authored andcommitted
qed: Fix null-pointer dereference in qed_rdma_create_qp()
Fix a possible null-pointer dereference in qed_rdma_create_qp(). Changes from V2: - Revert checkpatch fixes. Reported-by: TOTE Robot <[email protected]> Signed-off-by: Ariel Elior <[email protected]> Signed-off-by: Shai Malin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3711023 commit d33d19d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/qlogic/qed/qed_rdma.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,8 +1285,7 @@ qed_rdma_create_qp(void *rdma_cxt,
12851285

12861286
if (!rdma_cxt || !in_params || !out_params ||
12871287
!p_hwfn->p_rdma_info->active) {
1288-
DP_ERR(p_hwfn->cdev,
1289-
"qed roce create qp failed due to NULL entry (rdma_cxt=%p, in=%p, out=%p, roce_info=?\n",
1288+
pr_err("qed roce create qp failed due to NULL entry (rdma_cxt=%p, in=%p, out=%p, roce_info=?\n",
12901289
rdma_cxt, in_params, out_params);
12911290
return NULL;
12921291
}

0 commit comments

Comments
 (0)