gpu: ion: Add check for addr out of bounds

Add check for out of bounds condition when clients perform cache
operations on the System ION heap. Return error if client
tries to do a cache operation outside the valid range.

Also add check to make sure we don't dereference a null-pointer
when converting a page to its physical address.

Change-Id: Idacff0f36a9d872485e7e74ee1a355ec1e33fb2c
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
1 file changed