summaryrefslogtreecommitdiff
path: root/staging/syslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'staging/syslog.c')
0 files changed, 0 insertions, 0 deletions
ext.git/commit/?h=nds-private-remove&id=8b77eb97f7847d67129d5312596e953bd7946f48'>8b77eb97f7847d67129d5312596e953bd7946f48 (diff)
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: 02b23803c6af ("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>
Diffstat