OSDN Git Service

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)
commit6d79bd5bb6c79a9dba4842040c9adf39e7806330
tree0291836a200994109d5097328d3a7019e8911a71
parentce8a3a9e76d0193e2e8d74a06d275b3c324ca652
staging: android: ion: Zero CMA allocated memory

Since commit 204f672255c2 ("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: 204f672255c2 ("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