summaryrefslogtreecommitdiff
path: root/arch/arm/mm/proc-arm922.S
diff options
context:
space:
mode:
authorNathan Jones <nathanj439@gmail.com>2018-12-04 12:05:32 +0300
committerRussell King <rmk+kernel@armlinux.org.uk>2018-12-05 01:38:34 +0300
commitc2a3831df6dc164af66d8d86cf356a90c021b86f (patch)
treed3bbfe10057d1c9c0717a65ff53f815991ad67d5 /arch/arm/mm/proc-arm922.S
parent3d0358d0ba048c5afb1385787aaec8fa5ad78fcc (diff)
downloadlinux-c2a3831df6dc164af66d8d86cf356a90c021b86f.tar.xz
ARM: 8816/1: dma-mapping: fix potential uninitialized return
While trying to use the dma_mmap_*() interface, it was noticed that this interface returns strange values when passed an incorrect length. If neither of the if() statements fire then the return value is uninitialized. In the worst case it returns 0 which means the caller will think the function succeeded. Fixes: 1655cf8829d8 ("ARM: dma-mapping: Remove traces of NOMMU code") Signed-off-by: Nathan Jones <nathanj439@gmail.com> Reviewed-by: Robin Murphy <robin.murphy@arm.com> Acked-by: Vladimir Murzin <vladimir.murzin@arm.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/mm/proc-arm922.S')
0 files changed, 0 insertions, 0 deletions