aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2010-05-18 18:01:33 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-20 16:21:49 -0400
commitf26c2889a4d937371e2ec9b5690ac407f0496634 (patch)
tree117dc47c1de32a8eda2dd195825d10905e653658 /drivers/usb
parent6d1bf48e240bde4e9c7313ccdd2fe32f37f67ad4 (diff)
USB: aircable: fix incorrect write-buffer length
Returned length should include header length. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/serial/aircable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/aircable.c b/drivers/usb/serial/aircable.c
index 8a990a763c21..0db6ace16f7b 100644
--- a/drivers/usb/serial/aircable.c
+++ b/drivers/usb/serial/aircable.c
@@ -95,7 +95,7 @@ static int aircable_prepare_write_buffer(struct usb_serial_port *port,
95 buf[1] = TX_HEADER_1; 95 buf[1] = TX_HEADER_1;
96 put_unaligned_le16(count, &buf[2]); 96 put_unaligned_le16(count, &buf[2]);
97 97
98 return count; 98 return count + HCI_HEADER_LENGTH;
99} 99}
100 100
101static int aircable_probe(struct usb_serial *serial, 101static int aircable_probe(struct usb_serial *serial,