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>
Wed, 28 Mar 2018 16:24:49 +0000 (18:24 +0200)
commit26023c977975846e739ea40906795d59f64194c0
tree605907b397d10145f1265dc828f1e8d04c794061
parentaf00a24c9ea2a1cc16ba38560a5b3ea404ff3c09
staging: android: ion: Zero CMA allocated memory

commit 6d79bd5bb6c79a9dba4842040c9adf39e7806330 upstream.

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