]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-fc: don't call nvme_cleanup_cmd() for AENs
authorDaniel Wagner <dwagner@suse.de>
Fri, 29 May 2020 11:37:40 +0000 (13:37 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 11 Jun 2020 15:10:05 +0000 (09:10 -0600)
commit03eed103822c93073ee1f8464a7be6dc3169aa81
tree746f3419960a3bd741a2335dd987ebe46d9ac340
parentf043bab76f12122c551226979b1eb6d78ece7f25
nvme-fc: don't call nvme_cleanup_cmd() for AENs

Asynchronous event notifications do not have an associated request.
When fcp_io() fails we unconditionally call nvme_cleanup_cmd() which
leads to a crash.

Fixes: 3346ebadcca7 ("nvme: move common call to nvme_cleanup_cmd to core layer")
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Himanshu Madhani <hmadhani2024@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/fc.c