mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
USB: aircable: fix incorrect write-buffer length
Returned length should include header length. Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
6d1bf48e24
commit
f26c2889a4
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue