nvme-loop: clear NVME_LOOP_Q_LIVE when nvme_loop_configure_admin_queue() fails
authorHannes Reinecke <hare@suse.de>
Wed, 26 May 2021 15:23:16 +0000 (17:23 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 2 Jun 2021 07:06:53 +0000 (10:06 +0300)
commit1c5f8e882a05de5c011e8c3fbeceb0d1c590eb53
tree610f8638c37159e94425d843878a49a25799323e
parenta6c144f3d2e230f2b3ac5ed8c51e0f0391556197
nvme-loop: clear NVME_LOOP_Q_LIVE when nvme_loop_configure_admin_queue() fails

When the call to nvme_enable_ctrl() in nvme_loop_configure_admin_queue()
fails the NVME_LOOP_Q_LIVE flag is not cleared.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/loop.c