mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 20:06:35 +00:00
Use common wrappers operating directly on the struct sg_table objects to fix incorrect use of scatterlists sync calls. dma_sync_sg_for_*() functions have to be called with the number of elements originally passed to dma_map_sg_*() function, not the one returned in sgtable's nents. Fixes:d33186d0be("[media] omap3isp: ccdc: Use the DMA API for LSC") Fixes:0e24e90f2c("[media] omap3isp: stat: Use the DMA API") CC: [email protected] Signed-off-by: Marek Szyprowski <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>