]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerSagi Grimberg <sagi@grimberg.me>
Thu, 16 Mar 2017 16:41:17 +0000 (18:41 +0200)
commite4c5d3762e2d6d274bd1cc948c47063becfa2103
treea4fce8dbb95558ffd1de0124ea8d4f4f5821c206
parentefd4b81abbe1ac753717f2f10cd3dab8bed6c103
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