aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorLaura Abbott <labbott@redhat.com>2017-04-18 11:27:13 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-18 20:43:14 +0200
commit804ca94a98237e12ad8fabf7cdc566f14b05b7df (patch)
tree70c70595f1c7d4cbccdc9ceefb76c51ed91bc77d /drivers/staging
parentstaging: android: ion: Remove ion_handle and ion_client (diff)
downloadlinux-dev-804ca94a98237e12ad8fabf7cdc566f14b05b7df.tar.xz
linux-dev-804ca94a98237e12ad8fabf7cdc566f14b05b7df.zip
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 <labbott@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/android/ion/ion.c1
1 files changed, 1 insertions, 0 deletions
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;