Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338700
b: refs/heads/master
c: 333396f
h: refs/heads/master
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Nov 21, 2012
1 parent 447bd67 commit 9e81799
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e32d82bcdb78f502f58d0b078395ed3864aaa223
refs/heads/master: 333396fc703860e19eadcdc67def9caa4f3154f4
3 changes: 2 additions & 1 deletion trunk/drivers/usb/serial/opticon.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ static int opticon_port_probe(struct usb_serial_port *port)
if (!priv->bulk_read_urb)
goto error;

priv->buffer_size = 2 * port->bulk_in_size;
priv->buffer_size = port->bulk_in_size;
priv->bulk_in_buffer = kmalloc(priv->buffer_size, GFP_KERNEL);
if (!priv->bulk_in_buffer)
goto error;
Expand Down Expand Up @@ -559,6 +559,7 @@ static struct usb_serial_driver opticon_device = {
},
.id_table = id_table,
.num_ports = 1,
.bulk_in_size = 256,
.attach = opticon_startup,
.port_probe = opticon_port_probe,
.port_remove = opticon_port_remove,
Expand Down

0 comments on commit 9e81799

Please sign in to comment.