RDMA/rxe: Do not NULL deref on debugging failure path
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 22 Nov 2022 19:37:39 +0000 (15:37 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 22 Nov 2022 19:53:02 +0000 (15:53 -0400)
commitcb6562c380832a930ffd1722ac9d479b454aed4e
treea3fc2a1280cf0462bf6d71aa8b140455f93e1e8b
parenta115aa00b18f7b8982b8f458149632caf64a862a
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>
drivers/infiniband/sw/rxe/rxe_mr.c