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

From: Nitesh Shetty
Date: Thu Jul 25 2024 - 00:58:40 EST


On 24/07/24 01:31PM, Leon Romanovsky wrote:
From: Leon Romanovsky <leonro@xxxxxxxxxx>

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@xxxxxxxxxx>
---

Reviewed-by: Nitesh Shetty <nj.shetty@xxxxxxxxxxx>