]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-rdma: fix possible use-after-free in connect timeout
authorSagi Grimberg <sagi@grimberg.me>
Tue, 24 Sep 2019 18:27:05 +0000 (11:27 -0700)
committerSagi Grimberg <sagi@grimberg.me>
Fri, 27 Sep 2019 17:24:53 +0000 (10:24 -0700)
commit38bab037f3d3f05f8dfe45e8b95746caf5b7458c
tree71f11ac206a3f3047eeb3b06ddb79dae8189dd47
parent535923bc85dba4063f2309301ac9b9eb7674b504
nvme-rdma: fix possible use-after-free in connect timeout

If the connect times out, we may have already destroyed the
queue in the timeout handler, so test if the queue is still
allocated in the connect error handler.

Reported-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/rdma.c