kernel_samsung_a53x/drivers/nvme/host
Leon Romanovsky 621457a70a 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: 4aedb705437f ("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-11-23 23:20:18 +01:00
..
core.c nvme-core: check for too small lba shift 2024-11-18 12:12:12 +01:00
fabrics.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fabrics.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fault_inject.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fc.c nvme-fc: do not wait in vain when unloading module 2024-11-18 22:25:33 +01:00
fc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwmon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lightnvm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
multipath.c nvme-multipath: find NUMA path only for online numa-node 2024-11-19 14:19:42 +01:00
nvme.h nvme: introduce helper function to get ctrl state 2024-11-18 12:12:15 +01:00
pci.c nvme-pci: add missing condition check for existence of mapped data 2024-11-23 23:20:18 +01:00
rdma.c nvme-rdma: do not try to stop unallocated queues 2024-11-08 11:26:19 +01:00
tcp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.h Revert "nvme: use command_id instead of req->tag in trace_nvme_complete_rq()" 2024-11-18 12:12:11 +01:00
zns.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00