Commit 0c802d29 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: add bulk_in_size for usb-serial devices.

Don't know why I didn't do it before...
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent b94e7ae2
......@@ -1047,6 +1047,7 @@ int usb_serial_probe(struct usb_interface *interface,
goto probe_error;
}
buffer_size = endpoint->wMaxPacketSize;
port->bulk_in_size = buffer_size;
port->bulk_in_endpointAddress = endpoint->bEndpointAddress;
port->bulk_in_buffer = kmalloc (buffer_size, GFP_KERNEL);
if (!port->bulk_in_buffer) {
......
......@@ -100,6 +100,7 @@ struct usb_serial_port {
__u8 interrupt_in_endpointAddress;
unsigned char * bulk_in_buffer;
int bulk_in_size;
struct urb * read_urb;
__u8 bulk_in_endpointAddress;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment