mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 23:04:54 +01: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]>