linux/drivers/staging/android
Dan Carpenter cf55902b9c staging: android: ion: Fix error handling in ion_query_heaps()
If the copy_to_user() fails we should unlock and return directly without
updating "cnt".  Also the return value should be -EFAULT instead of the
number of bytes remaining.

Fixes: 02b23803c6 ("staging: android: ion: Add ioctl to query available heaps")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-10-24 15:36:15 +02:00
..
ion staging: android: ion: Fix error handling in ion_query_heaps() 2016-10-24 15:36:15 +02:00
uapi staging: ion: Fix a coding style issue 2016-09-25 12:37:14 +02:00
ashmem.c Merge branch 'mm-pkeys-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2016-03-20 19:08:56 -07:00
ashmem.h
Kconfig dma-buf/sw_sync: de-stage SW_SYNC 2016-08-15 16:41:46 +02:00
lowmemorykiller.c Staging: android: fixed permissions style issue 2016-09-27 13:08:05 +02:00
Makefile dma-buf/sw_sync: de-stage SW_SYNC 2016-08-15 16:41:46 +02:00
TODO staging/android: add TODO to de-stage android sync framework 2015-12-14 11:05:45 -08:00