ion: check invalid values in ion_system_heap
authorColin Cross <ccross@android.com>
Fri, 13 Dec 2013 22:25:03 +0000 (14:25 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:57:19 +0000 (08:57 -0800)
commitc13d1df947f1c312143eda77a754149d0043e4d3
treecff70d8ae99c9d9dce496cf5f6b290ac0dd598e0
parent06e0dcaeb4fd72a010a1f5ad0c03abd8e0a58ef9
ion: check invalid values in ion_system_heap

ion_system_heap can only satisfy page alignment, and
ion_system_contig_heap can only satisify alignment to the
allocation size.  Neither can support faulting user mappings
because they use slab pages.

Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_system_heap.c