diff options
| author | Sang-Hoon Choi <csh0052@gmail.com> | 2026-09-30 16:08:58 +0900 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-10-03 01:57:04 -0700 |
| commit | 4aa9c0f377a4de5e8fddce76b34ee4529639a1ff (patch) | |
| tree | a693cdd953e928b7d58bfb96ba010295f5795a5c /tools/perf/scripts/python | |
| parent | b3ce7572130f7bdc71581d798df3fbfc3b64e7a5 (diff) | |
| download | linux-next-4aa9c0f377a4de5e8fddce76b34ee4529639a1ff.tar.gz linux-next-4aa9c0f377a4de5e8fddce76b34ee4529639a1ff.zip | |
nvmet: use the local P2P device on metadata allocation failure
nvmet_req_alloc_p2pmem_sgls() assigns req->p2p_dev only after the data
and metadata SGL allocations succeed. If the data allocation succeeds
but the metadata allocation fails, out_free_sg passes req->p2p_dev to
pci_p2pmem_free_sgl() before that assignment has taken place.
Pass the local p2p_dev argument instead, so cleanup uses the same PCI
device as the successful data allocation.
Fixes: bcd9a0797d73 ("nvmet: fix freeing unallocated p2pmem")
Reported-by: Changyul Lee <lcy8047@gmail.com>
Reviewed-by: Maurizio Lombardi <mlombard@redhat.com>
Signed-off-by: Sang-Hoon Choi <csh0052@gmail.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
