]> git.baikalelectronics.ru Git - kernel.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>
Wed, 23 Sep 2009 13:46:18 +0000 (06:46 -0700)
commit7312c1a759d0da94b4ee8291bea98299489767fe
treeb98c9f32ac12fb8c7957d39fd2acc42f8f4ae47e
parent162d6a558ccd073c8b122a33a6223e09d467c47d
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