Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsK4x-0005fX-D0 for qemu-devel@nongnu.org; Tue, 21 Oct 2008 12:27:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsK4w-0005f3-B8 for qemu-devel@nongnu.org; Tue, 21 Oct 2008 12:27:31 -0400 Received: from [199.232.76.173] (port=36688 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsK4w-0005f0-3r for qemu-devel@nongnu.org; Tue, 21 Oct 2008 12:27:30 -0400 Received: from savannah.gnu.org ([199.232.41.3]:38793 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsK4w-00030R-39 for qemu-devel@nongnu.org; Tue, 21 Oct 2008 12:27:30 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KsK4v-0000zj-Fx for qemu-devel@nongnu.org; Tue, 21 Oct 2008 16:27:29 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KsK4v-0000zf-4h for qemu-devel@nongnu.org; Tue, 21 Oct 2008 16:27:29 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Tue, 21 Oct 2008 16:27:29 +0000 Subject: [Qemu-devel] [5507] Fix broken USB support for Linux host (Bjorn Danielsson) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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(). Signed-off-by: Bjorn Danielsson Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/usb-linux.c Modified: trunk/usb-linux.c =================================================================== --- trunk/usb-linux.c 2008-10-21 11:31:27 UTC (rev 5506) +++ trunk/usb-linux.c 2008-10-21 16:27:28 UTC (rev 5507) @@ -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; }