diff options
author | 2024-11-01 05:40:04 +0100 | |
---|---|---|
committer | 2024-11-05 07:54:34 -0800 | |
commit | 3c2fb1ca8086eb139b2a551358137525ae8e0d7a (patch) | |
tree | c39ddeb3087392f13fa0858be5f67a09eac85b17 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | nvme: use helpers to access io_uring cmd space (diff) | |
download | wireguard-linux-3c2fb1ca8086eb139b2a551358137525ae8e0d7a.tar.xz wireguard-linux-3c2fb1ca8086eb139b2a551358137525ae8e0d7a.zip |
nvme-pci: fix freeing of the HMB descriptor table
The HMB descriptor table is sized to the maximum number of descriptors
that could be used for a given device, but __nvme_alloc_host_mem could
break out of the loop earlier on memory allocation failure and end up
using less descriptors than planned for, which leads to an incorrect
size passed to dma_free_coherent.
In practice this was not showing up because the number of descriptors
tends to be low and the dma coherent allocator always allocates and
frees at least a page.
Fixes: 87ad72a59a38 ("nvme-pci: implement host memory buffer support")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions