diff options
author | Keith Busch <[email protected]> | 2023-02-10 10:03:46 -0800 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2023-02-14 06:40:52 +0100 |
commit | 8f0edf45bb676ec3558d6b668ad3f6a7d54cf601 (patch) | |
tree | 2467b7c480d82cf861ea209864bc081fd16dbd42 /lib/test_fortify/write_overflow-strscpy.c | |
parent | 2f1e07dda1e1310873647abc40bbc49eaf3b10e3 (diff) |
nvme-pci: fix freeing single sgl
There may only be a single DMA mapped entry from multiple physical
segments, which means we don't allocate a separte SGL list. Check the
number of allocations prior to know if we need to free something.
Freeing a single list allocation is the same for both PRP and SGL
usages, so we don't need to check the use_sgl flag anymore.
Fixes: 01df742d8c5c0 ("nvme-pci: remove SGL segment descriptors")
Reported-by: Niklas Schnelle <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Tested-by: Niklas Schnelle <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strscpy.c')
0 files changed, 0 insertions, 0 deletions