]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-loop: fix a possible use-after-free when destroying the admin queue
authorSagi Grimberg <sagi@grimberg.me>
Mon, 27 Feb 2017 16:44:45 +0000 (18:44 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 4 Apr 2017 15:44:41 +0000 (09:44 -0600)
commitd3f21bddf1358f2180864fedbe20371ac34b411d
tree1373f5cb3f126324af250779b30ca5be5861b55b
parent1bffe7049fcf27947c4acc1d0c1a9fcf9852a70e
nvme-loop: fix a possible use-after-free when destroying the admin queue

we need to destroy the nvmet sq and let it finish gracefully
before continue to cleanup the queue.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/target/loop.c