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

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

adb: Fix infinite loop in Linux host device discovery.

parent 668cc771
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -269,11 +269,7 @@ static void find_usb_device(const char *base,
                    break;
                } else {
                    // seek next interface descriptor
                    if (i < interfaces - 1) {
                        while (bufptr[1] != USB_DT_INTERFACE) {
                            bufptr += bufptr[0];
                        }
                    }
                    bufptr += (USB_DT_ENDPOINT_SIZE * interface->bNumEndpoints);
                 }
            } // end of for