From: Laura Abbott Date: Tue, 18 Apr 2017 18:27:13 +0000 (-0700) Subject: staging: android: ion: Set query return value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=804ca94a98237e12ad8fabf7cdc566f14b05b7df;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: android: ion: Set query return value This never got set in the ioctl. Properly set a return value of 0 on success. Signed-off-by: Laura Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 9eeb06f71d7c..d6fd3507e0e0 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -498,6 +498,7 @@ int ion_query_heaps(struct ion_heap_query *query) } query->cnt = cnt; + ret = 0; out: up_read(&dev->lock); return ret;