Skip to content
Commit 6c503d0d authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

sparc/iommu: fix ->map_sg return value



Just decrementing the sz value will lead to an incorrect return value.
Instead of just introducing a local variable switch to the standard
for_each_sg helper and standard naming of the arguments.

Fixes: ce65d36f ("sparc: remove the sparc32_dma_ops indirection")
Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 1e2934ad
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment