aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorLogan Gunthorpe <[email protected]>2021-10-13 10:59:42 -0600
committerJason Gunthorpe <[email protected]>2021-10-13 15:26:41 -0300
commitac0fffa0859b8e1e991939663b3ebdd80bf979e6 (patch)
treeb938e42a3c47bf5c499d88948ce0f7a316e7bcc0 /tools/perf/scripts/python/mem-phys-addr.py
parent3b87e0824272414cec79763afef6720c7c908c44 (diff)
RDMA/core: Set sgtable nents when using ib_dma_virt_map_sg()
ib_dma_map_sgtable_attrs() should be mapping the sgls and setting nents but the ib_uses_virt_dma() path falls back to ib_dma_virt_map_sg() which will not set the nents in the sgtable. Check the return value (per the map_sg calling convention) and set sgt->nents appropriately on success. Fixes: 79fbd3e1241c ("RDMA: Use the sg_table directly and remove the opencoded version from umem") Link: https://lore.kernel.org/r/[email protected] Reported-by: Bart Van Assche <[email protected]> Signed-off-by: Logan Gunthorpe <[email protected]> Tested-by: Bart Van Assche <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions