diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2022-11-22 22:37:39 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-11-22 22:53:02 +0300 |
commit | cb6562c380832a930ffd1722ac9d479b454aed4e (patch) | |
tree | a3fc2a1280cf0462bf6d71aa8b140455f93e1e8b /drivers/infiniband/sw | |
parent | a115aa00b18f7b8982b8f458149632caf64a862a (diff) | |
download | linux-cb6562c380832a930ffd1722ac9d479b454aed4e.tar.xz |
RDMA/rxe: Do not NULL deref on debugging failure path
Correct the mistake, mr is obviously NULL in this code path.
Fixes: 2778b72b1df0 ("RDMA/rxe: Replace pr_xxx by rxe_dbg_xxx in rxe_mr.c")
Link: https://lore.kernel.org/r/Y3eeJW0AdyJYhYyQ@kili
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_mr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_mr.c b/drivers/infiniband/sw/rxe/rxe_mr.c index b1423000e4bc..b7c9ff1ddf0e 100644 --- a/drivers/infiniband/sw/rxe/rxe_mr.c +++ b/drivers/infiniband/sw/rxe/rxe_mr.c @@ -519,7 +519,7 @@ int rxe_invalidate_mr(struct rxe_qp *qp, u32 key) mr = rxe_pool_get_index(&rxe->mr_pool, key >> 8); 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; goto err; } |