]> Git Repo - linux.git/commit
ARM: 8816/1: dma-mapping: fix potential uninitialized return
authorNathan Jones <[email protected]>
Tue, 4 Dec 2018 09:05:32 +0000 (10:05 +0100)
committerRussell King <[email protected]>
Tue, 4 Dec 2018 22:38:34 +0000 (22:38 +0000)
commitc2a3831df6dc164af66d8d86cf356a90c021b86f
treed3bbfe10057d1c9c0717a65ff53f815991ad67d5
parent3d0358d0ba048c5afb1385787aaec8fa5ad78fcc
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 <[email protected]>
Reviewed-by: Robin Murphy <[email protected]>
Acked-by: Vladimir Murzin <[email protected]>
Signed-off-by: Russell King <[email protected]>
arch/arm/mm/dma-mapping.c
This page took 0.056265 seconds and 4 git commands to generate.