]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit67b483dd03c4cd9e90e4c3943132dce514ea4e88
tree71f11ac206a3f3047eeb3b06ddb79dae8189dd47
parentf968688f44f529f96a64c9853fb2fb5d0a329aff
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