]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
nvmet-rdma: check for timeout in nvme_rdma_wait_for_cm()
authorBart Van Assche <bvanassche@acm.org>
Mon, 8 Oct 2018 21:28:54 +0000 (14:28 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 17 Oct 2018 06:58:24 +0000 (08:58 +0200)
commit35da77d556c17980f9bd6892828a70d7a1a8a145
treef0f8deb52659026d4405735f5f9c998b3991730d
parent43a6f8fb619730fe5989e2430669626b2b5e13a0
nvmet-rdma: check for timeout in nvme_rdma_wait_for_cm()

Check whether queue->cm_error holds a value before reading it. This patch
addresses Coverity ID 1373774: unchecked return value.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/rdma.c