Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8849d19 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

libusbhost: Fix deadlock on devices without USB host support.



Change-Id: Ic91f99d1169fcdc00474dd6a870eb7e614128bc2
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 72f3a00c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -162,6 +162,8 @@ void usb_host_run(struct usb_host_context *context,
    wds[0] = inotify_add_watch(context->fd, USB_FS_DIR, IN_CREATE | IN_DELETE);
    if (wds[0] < 0) {
        fprintf(stderr, "inotify_add_watch failed\n");
        if (discovery_done_cb)
            discovery_done_cb(client_data);
        return;
    }