Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 340e01248478ba8b78a6d4d1809b1eff > files > 780

kvm-83-270.el5_11.src.rpm

From 16a3dd367a4f94742d62234e0ed8d68518e51baa Mon Sep 17 00:00:00 2001
From: Alex Williamson <alex.williamson@redhat.com>
Date: Wed, 10 Nov 2010 20:35:03 -0200
Subject: [PATCH 1/4] usb-linux: increase buffer for USB control requests

RH-Author: Alex Williamson <alex.williamson@redhat.com>
Message-id: <20101110203359.13906.59201.stgit@s20.home>
Patchwork-id: 13407
O-Subject: [RHEL5.6 kvm-userspace PATCH] usb-linux: increase buffer for USB
	control requests
Bugzilla: 627343
RH-Acked-by: Don Dutile <ddutile@redhat.com>
RH-Acked-by: Juan Quintela <quintela@redhat.com>
RH-Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>

From: Christian Krause <chkr@plauener.de>

Upstream commit: fd7a446f162768c044b3bf3844f7605eeef351af
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=627343
Brew build: http://brewweb.devel.redhat.com/brew/taskinfo?taskID=2887887

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@plauener.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
---

 qemu/usb-linux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 qemu/usb-linux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/qemu/usb-linux.c b/qemu/usb-linux.c
index 7b0e729..ca61e05 100644
--- a/qemu/usb-linux.c
+++ b/qemu/usb-linux.c
@@ -119,7 +119,7 @@ struct ctrl_struct {
     uint16_t offset;
     uint8_t  state;
     struct   usb_ctrlrequest req;
-    uint8_t  buffer[2048];
+    uint8_t  buffer[8192];
 };
 
 typedef struct USBHostDevice {
-- 
1.7.3.2