WSL2-Linux-Kernel/drivers/nvme
Leon Romanovsky 7cc1f4cd90 nvme-pci: add missing condition check for existence of mapped data
[ Upstream commit c31fad1470389666ac7169fe43aa65bf5b7e2cfd ]

nvme_map_data() is called when request has physical segments, hence
the nvme_unmap_data() should have same condition to avoid dereference.

Fixes: 4aedb70543 ("nvme-pci: split metadata handling from nvme_map_data / nvme_unmap_data")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Nitesh Shetty <nj.shetty@samsung.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-19 05:45:27 +02:00
..
host nvme-pci: add missing condition check for existence of mapped data 2024-08-19 05:45:27 +02:00
target nvmet: fix a possible leak when destroy a ctrl during qp establishment 2024-07-18 13:07:36 +02:00
Kconfig
Makefile