[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Fix broken USB support for Linux host
From: |
Bjorn Danielsson |
Subject: |
[Qemu-devel] [PATCH] Fix broken USB support for Linux host |
Date: |
Tue, 21 Oct 2008 16:50:36 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Make "host:" usb devices work again on systems that have the
file /proc/bus/usb/devices. This was broken in r5441 due to
incorrect logic for the USB_FS_SYS case in usb_host_scan().
Signed-off by: Bjorn Danielsson <address@hidden>
Index: usb-linux.c
===================================================================
--- usb-linux.c (revision 5499)
+++ usb-linux.c (working copy)
@@ -1293,7 +1293,8 @@
usb_fs_type = USB_FS_SYS;
closedir(dir);
dprintf(opened, USBSYSBUS_PATH, devices);
- } else {
+ }
+ if (!usb_fs_type) {
term_printf("husb: unable to access USB devices\n");
goto the_end;
}