projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d1bf48
)
USB: aircable: fix incorrect write-buffer length
author
Johan Hovold
<jhovold@gmail.com>
Tue, 18 May 2010 22:01:33 +0000
(
00:01
+0200)
committer
Greg 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/serial/aircable.c
b/drivers/usb/serial/aircable.c
index 8a990a763c2196652bfe984f84699d220436ddd4..0db6ace16f7ba687e69b13cc445fb2026a6131f5 100644
(file)
--- 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,