mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
dma_map_sgtable() returns only 0 or the error code. Read sgt->nents to
get the number of mapped segments.
Fixes: 37e0070322 ("zynq_fpga: use sgtable-based scatterlist wrappers")
Reported-by: Pavel Pisa <[email protected]>
Closes: https://lore.kernel.org/linux-fpga/[email protected]/
Reviewed-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Marek Szyprowski <[email protected]>
Signed-off-by: Xu Yilun <[email protected]>
Tested-by: Pavel Pisa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>