staging: android: ion: Set query return value
authorLaura Abbott <labbott@redhat.com>
Tue, 18 Apr 2017 18:27:13 +0000 (11:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Apr 2017 18:43:14 +0000 (20:43 +0200)
This never got set in the ioctl. Properly set a return value of 0 on
success.

Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion.c

index 9eeb06f71d7c02717729ebd3cd8669c9d8d7bd64..d6fd3507e0e0fa594c909463e7155cf13f6c73cf 100644 (file)
@@ -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;