浏览代码

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>
Laura Abbott 8 年之前
父节点
当前提交
804ca94a98
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/staging/android/ion/ion.c

+ 1 - 0
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;