]> 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)
commitea7d9106af1c311d1b588e6d74f8fe788a763196
tree0291836a200994109d5097328d3a7019e8911a71
parent05f83710566ae7d5f7c899acd9718141ebf31daf
staging: android: ion: Zero CMA allocated memory

Since commit 40d59e210c6a ("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: 40d59e210c6a ("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