diff options
author | 2024-07-24 13:31:14 +0300 | |
---|---|---|
committer | 2024-07-25 07:20:54 -0700 | |
commit | c31fad1470389666ac7169fe43aa65bf5b7e2cfd (patch) | |
tree | c2980209a5830fbfc9d5025d5d5c409cf3ac7fbf /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | nvme-core: choose PIF from QPIF if QPIFS supports and PIF is QTYPE (diff) | |
download | wireguard-linux-c31fad1470389666ac7169fe43aa65bf5b7e2cfd.tar.xz wireguard-linux-c31fad1470389666ac7169fe43aa65bf5b7e2cfd.zip |
nvme-pci: add missing condition check for existence of mapped data
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>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions