gpu: ion: ion_chunk_heap: Zero chunk heap memory at creation time
authorRebecca Schultz Zavin <rebecca@android.com>
Fri, 13 Dec 2013 22:24:37 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:41 +0000 (08:55 -0800)
commit57b5cd067fc713433e75688348832e2e2f82b843
tree6f969276d44da0d8abcb2f85d3934e0f87768ed1
parente09539a04285b616ebcc50f2f6b75ad7fbb0aec5
gpu: ion: ion_chunk_heap: Zero chunk heap memory at creation time

Allocations from the ion heap need to be zeroed to protect userspace
from seeing memory belonging to other processes.  First allocations
from this heap were not zero'd allowing users to see memory from other
processes on a warm reset.

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_chunk_heap.c