RE: [RFC] ion:change ion_cma_allocate return error value

2015-01-28 Thread Wang, Yalin
...@vger.kernel.org'; Gao, Neil Subject: Re: [RFC] ion:change ion_cma_allocate return error value On Tue, Jan 27, 2015 at 02:04:21PM +0800, Wang, Yalin wrote: This patch change the error return value from -1 to -ENOMEM, so that userspace can get the correct errno, otherwise, -1 will be -EPERM

Re: [RFC] ion:change ion_cma_allocate return error value

2015-01-28 Thread 'gre...@linuxfoundation.org'
On Tue, Jan 27, 2015 at 02:04:21PM +0800, Wang, Yalin wrote: This patch change the error return value from -1 to -ENOMEM, so that userspace can get the correct errno, otherwise, -1 will be -EPERM, userspace will print permission deny for allocation failure. Signed-off-by: Yalin Wang

Re: [RFC] ion:change ion_cma_allocate return error value

2015-01-26 Thread Dan Carpenter
On Tue, Jan 27, 2015 at 02:04:21PM +0800, Wang, Yalin wrote: This patch change the error return value from -1 to -ENOMEM, so that userspace can get the correct errno, otherwise, -1 will be -EPERM, userspace will print permission deny for allocation failure. Signed-off-by: Yalin Wang

[RFC] ion:change ion_cma_allocate return error value

2015-01-26 Thread Wang, Yalin
This patch change the error return value from -1 to -ENOMEM, so that userspace can get the correct errno, otherwise, -1 will be -EPERM, userspace will print permission deny for allocation failure. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- drivers/staging/android/ion/ion_cma_heap.c