[PATCH] nvme-pci: add missing condition check for existence of mapped data

Nitesh Shetty nj.shetty at samsung.com
Wed Jul 24 10:57:35 PDT 2024


On 24/07/24 01:31PM, Leon Romanovsky wrote:
>From: Leon Romanovsky <leonro at nvidia.com>
>
>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 at nvidia.com>
>---

Reviewed-by: Nitesh Shetty <nj.shetty at samsung.com>


More information about the Linux-nvme mailing list