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)
commitd476983ea078b7a101481967a3bb5ab6760cf759
tree1373f5cb3f126324af250779b30ca5be5861b55b
parentf363b089be0a39fe4282c688118a51d21f952bc7
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