commit | b06ee07711d602fe3ce53fb5984a3df1591df1e5 | [log] [tgz] |
---|---|---|
author | Olav Haugan <ohaugan@codeaurora.org> | Tue Dec 13 15:31:41 2011 -0800 |
committer | Olav Haugan <ohaugan@codeaurora.org> | Sun Jan 15 09:30:31 2012 -0800 |
tree | dc03ca71c415ef09fac12eaf846831c2d97dd100 | |
parent | e1f5d838d1015b0e68cf08fe4827e6f068b07a24 [diff] |
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: Olav Haugan <ohaugan@codeaurora.org>