Files
erofs-linux/drivers/fpga
Xu Yilun 1ca61060de fpga: zynq_fpga: Fix the wrong usage of dma_map_sgtable()
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]>
2025-08-19 12:54:45 +02:00
..
…
…
…
…
…
…
…
…