From: Alon Ziv Date: Sun, 10 Oct 2010 06:32:18 +0000 (+0200) Subject: USB: opticon: Fix long-standing bugs in opticon driver X-Git-Tag: v2.6.37-rc1~154^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97cd8dc4ca9a1a5efb2cc38758e01492e3b013e2;p=pandora-kernel.git USB: opticon: Fix long-standing bugs in opticon driver 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 Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed