]> asedeno.scripts.mit.edu Git - linux.git/commit
nvmet-loop: fix possible leakage during error flow
authorMax Gurtovoy <maxg@mellanox.com>
Sun, 13 Oct 2019 16:57:37 +0000 (19:57 +0300)
committerKeith Busch <kbusch@kernel.org>
Tue, 15 Oct 2019 13:47:28 +0000 (22:47 +0900)
commit5812d04c4c7455627d8722e04ab99a737cfe9713
tree86951d6e239759fed63f3b25879563d7468f3ea1
parentac1c4e18858cb1da6abe1932a7ca001c37f62372
nvmet-loop: fix possible leakage during error flow

During nvme_loop_queue_rq error flow, one must call nvme_cleanup_cmd since
it's symmetric to nvme_setup_cmd.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/loop.c