From: Johan Hovold Date: Tue, 18 May 2010 22:01:33 +0000 (+0200) Subject: USB: aircable: fix incorrect write-buffer length X-Git-Tag: v2.6.35-rc1~471^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f26c2889a4d937371e2ec9b5690ac407f0496634;p=platform%2Fkernel%2Flinux-3.10.git USB: aircable: fix incorrect write-buffer length Returned length should include header length. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/aircable.c b/drivers/usb/serial/aircable.c index 8a990a7..0db6ace 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,