mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-09-03 06:30:15 +03:00
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13137 3c298f89-4303-0410-b956-a3cf2f4a3e73
12 lines
498 B
Diff
12 lines
498 B
Diff
--- a/drivers/usb/serial/usb-serial.c
|
|
+++ b/drivers/usb/serial/usb-serial.c
|
|
@@ -904,7 +904,7 @@ int usb_serial_probe(struct usb_interfac
|
|
dev_err(&interface->dev, "No free urbs available\n");
|
|
goto probe_error;
|
|
}
|
|
- buffer_size = (endpoint->wMaxPacketSize > maxSize) ? endpoint->wMaxPacketSize : maxSize;
|
|
+ buffer_size = 2048;
|
|
port->bulk_in_size = buffer_size;
|
|
port->bulk_in_endpointAddress = endpoint->bEndpointAddress;
|
|
port->bulk_in_buffer = kmalloc (buffer_size, GFP_KERNEL);
|