]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: opticon: Fix long-standing bugs in opticon driver
authorAlon Ziv <alon+git@nolaviz.org>
Sun, 10 Oct 2010 06:32:18 +0000 (08:32 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Nov 2010 19:03:14 +0000 (11:03 -0800)
commitbc84dd31658899b5e5e880ca15e206a2b9655b55
tree7b18d07ad2f15339b09da43005919047b7b1e878
parent19b0864b238b4780b2f019944790a9987fbdefb3
USB: opticon: Fix long-standing bugs in opticon driver

commit 97cd8dc4ca9a1a5efb2cc38758e01492e3b013e2 upstream.

The bulk-read callback had two bugs:
a) The bulk-in packet's leading two zeros were returned (and the two last
   bytes truncated)
b) The wrong URB was transmitted for the second (and later) read requests,
   causing further reads to return the entire packet (including leading
   zeros)

Signed-off-by: Alon Ziv <alon-git@nolaviz.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/opticon.c