]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Wed, 28 Mar 2018 16:23:04 +0000 (18:23 +0200)
commitc7674a71bc3848ee604bd714b0ab0a51c3ba76c4
tree076493938ba71f6c8dcb27e4221a890ab8e826b1
parente8689b8bbae997a4afb22aabcfca7f864d4c820d
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