]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: Fix SS endpoint companion descriptor parsing.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 8 Sep 2009 20:20:16 +0000 (13:20 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 16:32:54 +0000 (09:32 -0700)
commit59664c0bdadb460086399375a3203fd08feb6abf
tree0edc17caa4ed2fc8aa94f8a374ee70c19367b6bb
parent1e7198c04256707887c996bc768e51225bca877e
USB: Fix SS endpoint companion descriptor parsing.

commit 6682bb39e111b34290e25c4d275c5bcf8bbccbe1 upstream.

When there's a descriptor after the SuperSpeed endpoint companion
descriptor, the previous code would have skipped over twice the length it
was supposed to.  This code fixes crashes seen with UASP devices (which
have a UASP descriptor after the SS endpoint companion descriptor).

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/config.c