author | Eric W. Biederman
<ebiederm@xmission.com> 2009-11-18 03:10:48 UTC |
committer | Greg Kroah-Hartman
<gregkh@suse.de> 2009-12-01 00:43:15 UTC |
parent | cea83241b3a84499c4f9b12f8288f787e7aa6383 |
drivers/usb/serial/ftdi_sio.c | +1 | -2 |
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 9c60d6d4908..ebcc6d0e2e9 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -1937,7 +1937,7 @@ static void ftdi_write_bulk_callback(struct urb *urb) return; } /* account for transferred data */ - countback = urb->actual_length; + countback = urb->transfer_buffer_length; data_offset = priv->write_offset; if (data_offset > 0) { /* Subtract the control bytes */ @@ -1950,7 +1950,6 @@ static void ftdi_write_bulk_callback(struct urb *urb) if (status) { dbg("nonzero write bulk status received: %d", status); - return; } usb_serial_port_softint(port);