usbhost: Fix signature of OpenDevice result 05/181405/1 submit/tizen/20180615.023805
authorPaweł Szewczyk <p.szewczyk@samsung.com>
Wed, 13 Jun 2018 09:44:16 +0000 (11:44 +0200)
committerPaweł Szewczyk <p.szewczyk@samsung.com>
Wed, 13 Jun 2018 09:44:28 +0000 (11:44 +0200)
The OpenDevice method is expected to return two values: return code and
a file descriptor.

Change-Id: I523f7a74a132e6aef198fb97d1f58d64a2901367
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
src/usbhost/usb-host.c

index 24876f2..79f97e7 100644 (file)
@@ -833,7 +833,7 @@ static void finish_opening(struct usbhost_open_request *req, int policy)
                goto out;
        }
 
-       g_dbus_method_invocation_return_value_with_unix_fd_list(req->invocation, g_variant_new("(i)", ret), fd_list);
+       g_dbus_method_invocation_return_value_with_unix_fd_list(req->invocation, g_variant_new("(ih)", ret, 0), fd_list);
 
        g_object_unref(fd_list);