Skip to contentSkip to conversation

[5507] Fix broken USB support for Linux host (Bjorn Danielsson)

Qemu-devel Anthony Liguori 1 participant 1 message Oct 21, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5507

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5507
Author:   aliguori
Date:     2008-10-21 16:27:28 +0000 (Tue, 21 Oct 2008)

Log Message:
-----------
Fix broken USB support for Linux host (Bjorn Danielsson)

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().

Modified Paths:
--------------
trunk/usb-linux.c

Modified: trunk/usb-linux.c
===================================================================

usb-linux.c +2 -1
@@ -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;
         }