]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:08:25 +0000 (18:08 -0500)
commit81f283bc95cff84658d28de141e93f0760081e40
treed8e1054769e914a5df647d0e4028163df8e99b2c
parent374c5bb65bf098fbb368a74767c2d0134addf631
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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/usb/serial/opticon.c