WSL2-Linux-Kernel/drivers/nvme/host
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
..
Kconfig
Makefile
core.c nvme: avoid double free special payload 2024-07-27 10:46:10 +02:00
fabrics.c
fabrics.h
fault_inject.c
fc.c
fc.h
hwmon.c
ioctl.c
multipath.c nvme-multipath: find NUMA path only for online numa-node 2024-07-18 13:07:35 +02:00
nvme.h
pci.c nvme-pci: add missing condition check for existence of mapped data 2024-08-19 05:45:27 +02:00
rdma.c
tcp.c
trace.c
trace.h
zns.c