Commit cb6562c3 authored by Jason Gunthorpe's avatar Jason Gunthorpe

RDMA/rxe: Do not NULL deref on debugging failure path

Correct the mistake, mr is obviously NULL in this code path.

Fixes: 2778b72b ("RDMA/rxe: Replace pr_xxx by rxe_dbg_xxx in rxe_mr.c")
Link: https://lore.kernel.org/r/Y3eeJW0AdyJYhYyQ@kiliReported-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent a115aa00
...@@ -519,7 +519,7 @@ int rxe_invalidate_mr(struct rxe_qp *qp, u32 key) ...@@ -519,7 +519,7 @@ int rxe_invalidate_mr(struct rxe_qp *qp, u32 key)
mr = rxe_pool_get_index(&rxe->mr_pool, key >> 8); mr = rxe_pool_get_index(&rxe->mr_pool, key >> 8);
if (!mr) { if (!mr) {
rxe_dbg_mr(mr, "No MR for key %#x\n", key); rxe_dbg_qp(qp, "No MR for key %#x\n", key);
ret = -EINVAL; ret = -EINVAL;
goto err; goto err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment