]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:49:10 +0000 (17:49 +0200)
commit00f08a9998e84d11a5459fb32a3fd428e89b2f57
tree9cccc72c17c91d598265abb7b91e77cd706805d9
parent2c207411b808256f92b24e5d61b0f31089b268ed
nvme-fc: don't call nvme_cleanup_cmd() for AENs

[ Upstream commit c9c12e51b82b2bd0c59ac4e27ee5427f382a503f ]

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: 16686f3a6c3c ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/fc.c