public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* re: RDMA: Clean destroy CQ in drivers do not return errors
@ 2019-06-14 13:59 Colin Ian King
  2019-06-14 19:46 ` Doug Ledford
  0 siblings, 1 reply; 3+ messages in thread
From: Colin Ian King @ 2019-06-14 13:59 UTC (permalink / raw)
  To: Leon Romanovsky, Gal Pressman, Dennis Dalessandro, Doug Ledford,
	linux-rdma
  Cc: linux-kernel

Hi,

Static analysis with Coverity reported an issue with the following commit:

commit a52c8e2469c30cf7ac453d624aed9c168b23d1af
Author: Leon Romanovsky <leonro@mellanox.com>
Date:   Tue May 28 14:37:28 2019 +0300

    RDMA: Clean destroy CQ in drivers do not return errors

In function bnxt_re_destroy_cq() contains the following:

        if (!cq->umem)
                ib_umem_release(cq->umem);

Coverity detects this as a deference after null check on the null
pointer cq->umem:

"var_deref_model: Passing null pointer cq->umem to ib_umem_release,
which dereferences it"

Is the logic inverted on that null check?

Colin

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

end of thread, other threads:[~2019-06-15  7:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-14 13:59 RDMA: Clean destroy CQ in drivers do not return errors Colin Ian King
2019-06-14 19:46 ` Doug Ledford
2019-06-15  7:12   ` Leon Romanovsky

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