Commit b06ee077 authored by Olav Haugan's avatar Olav Haugan
Browse files

gpu: ion: Change ION_IOC_ALLOC ioctl return value



ION_IOC_ALLOC may incorrectly return an error pointer
which could be 0 when an allocation fails. The ioctl call from user
space expects that the function succeeded when ioctl returns 0.
Change ION_IOC_ALLOC return value to -ENOMEM when the requested
buffer could not be allocated.

Change-Id: Id9d49ffa0eb8af5defc9635f40b45351b9dd8999
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
parent e1f5d838
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment