]> 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)
commit0e904995527daa5305f836995be45815cc83fb42
tree71f11ac206a3f3047eeb3b06ddb79dae8189dd47
parent9cfbc99a2661e1f3333d276b7aabbbc951a08783
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