OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:07:25 +0000 (10:07 +0100)
commitaf0cee086b0920612de5d6ad2a8f406792b5aa9d
tree784d7bccd1d2ac6ca728f3c816076cb9e65c34e9
parenta8939aac82b0802fa66ca6455ed8bc88913556cf
nvme-loop: fix a possible use-after-free when destroying the admin queue

[ Upstream commit e4c5d3762e2d6d274bd1cc948c47063becfa2103 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvme/target/loop.c