Commit f26c2889 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

USB: aircable: fix incorrect write-buffer length

Returned length should include header length.
Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6d1bf48e
...@@ -95,7 +95,7 @@ static int aircable_prepare_write_buffer(struct usb_serial_port *port, ...@@ -95,7 +95,7 @@ static int aircable_prepare_write_buffer(struct usb_serial_port *port,
buf[1] = TX_HEADER_1; buf[1] = TX_HEADER_1;
put_unaligned_le16(count, &buf[2]); put_unaligned_le16(count, &buf[2]);
return count; return count + HCI_HEADER_LENGTH;
} }
static int aircable_probe(struct usb_serial *serial, static int aircable_probe(struct usb_serial *serial,
......
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