ion: check invalid values in ion_system_heap
authorColin Cross <ccross@android.com>
Wed, 13 Nov 2013 22:46:06 +0000 (14:46 -0800)
committerColin Cross <ccross@android.com>
Thu, 12 Dec 2013 01:52:17 +0000 (17:52 -0800)
commite8f7f42cdcbe3ae4c4bf719847369ddac44219a9
tree21cbe05dd46c5af5b89b5249b2a7d1caf3ddbfcf
parentda3b36172d546200a851f165bf574d6090f4ff4a
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.

Change-Id: I895c2d4184c672f647f83a17aeb862985dc92f2c
Signed-off-by: Colin Cross <ccross@android.com>
drivers/staging/android/ion/ion_system_heap.c