diff options
| author | Johan Hovold <johan@kernel.org> | 2017-03-18 11:19:34 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2017-03-18 11:19:34 +0000 |
| commit | ee51e01a82f123740b68a0414b9e3a87e4ac6e08 (patch) | |
| tree | b88a92544f9cabe79e1dff2368118f52bf551f5a /drivers/usb | |
| parent | 64272b3c3184100c2798cf25eddfa8c251fe6eab (diff) | |
| parent | a8cb5c02a20f04d947e386bdd958e1e80e920baa (diff) | |
USB: serial: digi_acceleport: fix OOB-event processing
am: a8cb5c02a2
Change-Id: I542f42e517db3d00ff3a2b5735149af2bf989c55
Diffstat (limited to 'drivers/usb')
| -rw-r--r-- | drivers/usb/serial/digi_acceleport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c index 19c3bef426c3..e0b1fe2f60e1 100644 --- a/drivers/usb/serial/digi_acceleport.c +++ b/drivers/usb/serial/digi_acceleport.c @@ -1492,7 +1492,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]; |
