USB: aircable: fix incorrect write-buffer length
authorJohan Hovold <jhovold@gmail.com>
Tue, 18 May 2010 22:01:33 +0000 (00:01 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:49 +0000 (13:21 -0700)
Returned length should include header length.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/aircable.c

index 8a990a763c2196652bfe984f84699d220436ddd4..0db6ace16f7ba687e69b13cc445fb2026a6131f5 100644 (file)
@@ -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,