[Bug 790145] Re: kvm husb: ctrl buffer too small
Attb2
790145 at bugs.launchpad.net
Mon May 30 20:40:22 UTC 2011
I've downloaded RH bugfix and latest Ubuntu source code.
https://bugzilla.redhat.com/attachment.cgi?id=441018
https://launchpad.net/ubuntu/lucid/+source/qemu-kvm
qemu-kvm_0.12.3+noroms.orig.tar.gz
usb-linux.c source file is exactly the same, so this patch will fix the bug. :-)
Tomorrow morning I'll test it.
commit fd7a446f162768c044b3bf3844f7605eeef351af
Author: Christian Krause <chkr at plauener.de>
Date: Sun Jan 24 17:34:52 2010 +0100
usb-linux: increase buffer for USB control requests
The WLAN USB stick ZyXEL NWD271N (0586:3417) uses very large
usb control transfers of more than 2048 bytes which won't fit
into the buffer of the ctrl_struct. This results in an error message
"husb: ctrl buffer too small" and a non-working device.
Increasing the buffer size to 8192 seems to be a safe choice.
Signed-off-by: Christian Krause <chkr at plauener.de>
Signed-off-by: Aurelien Jarno <aurelien at aurel32.net>
diff --git a/usb-linux.c b/usb-linux.c
index ba8facf..122cdbf 100644
--- a/usb-linux.c
+++ b/usb-linux.c
@@ -113,7 +113,7 @@ struct ctrl_struct {
uint16_t offset;
uint8_t state;
struct usb_ctrlrequest req;
- uint8_t buffer[2048];
+ uint8_t buffer[8192];
};
struct USBAutoFilter {
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/790145
Title:
kvm husb: ctrl buffer too small
More information about the Ubuntu-server-bugs
mailing list