Skip to content

Commit

Permalink
USB: aircable: fix incorrect write-buffer length
Browse files Browse the repository at this point in the history
Returned length should include header length.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed May 20, 2010
1 parent 6d1bf48 commit f26c288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/serial/aircable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f26c288

Please sign in to comment.