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>
Wed, 23 Sep 2009 13:46:18 +0000 (06:46 -0700)
commit6682bb39e111b34290e25c4d275c5bcf8bbccbe1
treeb98c9f32ac12fb8c7957d39fd2acc42f8f4ae47e
parent624defa12f304b4d11eda309bc207fa5a1900d0f
USB: Fix SS endpoint companion descriptor parsing.

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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/config.c