diff options
author | Christoph Hellwig <hch@lst.de> | 2018-12-16 10:23:28 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-12-19 18:00:40 +0100 |
commit | 6c503d0d88db9d57c1dc4c87175c94766b6a6c61 (patch) | |
tree | e0107b0da7888fe0fc28ea6b4516e02f075e7996 /mm/list_lru.c | |
parent | sparc/io-unit: fix ->map_sg return value (diff) | |
download | linux-6c503d0d88db9d57c1dc4c87175c94766b6a6c61.tar.xz linux-6c503d0d88db9d57c1dc4c87175c94766b6a6c61.zip |
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: ce65d36f3e ("sparc: remove the sparc32_dma_ops indirection")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'mm/list_lru.c')
0 files changed, 0 insertions, 0 deletions