diff options
| author | aliguori | 2008-10-21 18:27:28 +0200 |
|---|---|---|
| committer | aliguori | 2008-10-21 18:27:28 +0200 |
| commit | 22babebbaa17c0c0c134ea4f5eaf5cbbd68472ab (patch) | |
| tree | ae86e2599f55f4bc134e78e3f1ce83ab56e38c22 /usb-linux.c | |
| parent | target-ppc: convert logical instructions to TCG (diff) | |
| download | qemu-22babebbaa17c0c0c134ea4f5eaf5cbbd68472ab.tar.gz qemu-22babebbaa17c0c0c134ea4f5eaf5cbbd68472ab.tar.xz qemu-22babebbaa17c0c0c134ea4f5eaf5cbbd68472ab.zip | |
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().
Signed-off-by: Bjorn Danielsson <bdq@dax.nu>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5507 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'usb-linux.c')
| -rw-r--r-- | usb-linux.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usb-linux.c b/usb-linux.c index 6113a0c5fb..7e94c6aa3d 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -1293,7 +1293,8 @@ static int usb_host_scan(void *opaque, USBScanFunc *func) 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; } |
