diff options
author | Johan Hovold <jhovold@gmail.com> | 2010-05-19 00:01:33 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 22:21:49 +0200 |
commit | f26c2889a4d937371e2ec9b5690ac407f0496634 (patch) | |
tree | 117dc47c1de32a8eda2dd195825d10905e653658 | |
parent | USB: safe_serial: straighten out read processing (diff) | |
download | linux-f26c2889a4d937371e2ec9b5690ac407f0496634.tar.xz linux-f26c2889a4d937371e2ec9b5690ac407f0496634.zip |
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>
-rw-r--r-- | drivers/usb/serial/aircable.c | 2 |
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, buf[1] = TX_HEADER_1; put_unaligned_le16(count, &buf[2]); - return count; + return count + HCI_HEADER_LENGTH; } static int aircable_probe(struct usb_serial *serial, |