]> git.baikalelectronics.ru Git - kernel.git/commit
staging: android: ion: Zero CMA allocated memory
authorLiam Mark <lmark@codeaurora.org>
Fri, 26 Jan 2018 17:48:18 +0000 (09:48 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 16:50:09 +0000 (17:50 +0100)
commit8a803bac2b94639dc4d58ee5aa5a9c54252e4007
tree0291836a200994109d5097328d3a7019e8911a71
parent66e2e985d5319a1cbda167567405642b1b983b8e
staging: android: ion: Zero CMA allocated memory

Since commit 93ecdbb33c67 ("staging: android: ion: Use CMA APIs directly")
the CMA API is now used directly and therefore the allocated memory is no
longer automatically zeroed.

Explicitly zero CMA allocated memory to ensure that no data is exposed to
userspace.

Fixes: 93ecdbb33c67 ("staging: android: ion: Use CMA APIs directly")
Signed-off-by: Liam Mark <lmark@codeaurora.org>
Acked-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_cma_heap.c