public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [bug report] RDMA/rxe: Replace pr_xxx by rxe_dbg_xxx in rxe_mr.c
@ 2022-11-18 15:00 Dan Carpenter
  2022-11-22 19:40 ` Jason Gunthorpe
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2022-11-18 15:00 UTC (permalink / raw)
  To: rpearsonhpe; +Cc: linux-rdma

Hello Bob Pearson,

This is a semi-automatic email about new static checker warnings.

The patch 2778b72b1df0: "RDMA/rxe: Replace pr_xxx by rxe_dbg_xxx in 
rxe_mr.c" from Nov 3, 2022, leads to the following Smatch complaint:

    drivers/infiniband/sw/rxe/rxe_mr.c:527 rxe_invalidate_mr()
    error: we previously assumed 'mr' could be null (see line 526)

drivers/infiniband/sw/rxe/rxe_mr.c
   525		mr = rxe_pool_get_index(&rxe->mr_pool, key >> 8);
   526		if (!mr) {
                    ^^^
"mr" is NULL.

   527			rxe_dbg_mr(mr, "No MR for key %#x\n", key);
                                   ^^
Dereference.

   528			ret = -EINVAL;
   529			goto err;

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-22 19:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-18 15:00 [bug report] RDMA/rxe: Replace pr_xxx by rxe_dbg_xxx in rxe_mr.c Dan Carpenter
2022-11-22 19:40 ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox