Thread (24 messages) 24 messages, 2 authors, 2017-03-29

[RFC PATCHv2 21/21] staging: android: ion: Set query return value

From: Laura Abbott <hidden>
Date: 2017-03-18 03:30:06
Also in: dri-devel, linux-media, linux-mm, lkml
Subsystem: staging subsystem, the rest · Maintainers: Greg Kroah-Hartman, Linus Torvalds

This never got set in the ioctl. Properly set a return value of 0 on
success.

Signed-off-by: Laura Abbott <redacted>
---
 drivers/staging/android/ion/ion.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c
index 64c652b..8bd90ce 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;
-- 
2.7.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help