git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
USB: serial: digi_acceleport: fix OOB-event processing
[pandora-kernel.git]
/
drivers
/
usb
/
serial
/
digi_acceleport.c
diff --git
a/drivers/usb/serial/digi_acceleport.c
b/drivers/usb/serial/digi_acceleport.c
index
24c9fc8
..
75b848e
100644
(file)
--- a/
drivers/usb/serial/digi_acceleport.c
+++ b/
drivers/usb/serial/digi_acceleport.c
@@
-1758,7
+1758,7
@@
static int digi_read_oob_callback(struct urb *urb)
return -1;
/* handle each oob command */
- for (i = 0; i < urb->actual_length -
4
; i += 4) {
+ for (i = 0; i < urb->actual_length -
3
; i += 4) {
opcode = buf[i];
line = buf[i + 1];
status = buf[i + 2];