USB: gadget rndis: stop windows self-immolation
commitd38a3218e8e8a74de61c1d5db462d499519aa7da
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 16 Nov 2008 03:53:21 +0000 (15 19:53 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 5 Dec 2008 18:55:08 +0000 (5 10:55 -0800)
tree16066d15e86a8cd2cbfc041a7a6d33e37f6fb796
parent2ab3bef821648fb04dec72b240da8f572ec597db
USB: gadget rndis: stop windows self-immolation

commit 9c264521a9f836541c122b00f505cfd60cc5bbb5 upstream.

Somewhere in the conversion of the RNDIS gadget code to the new
framework, the descriptor of its data interface seems to have
been copied from the CDC Ethernet driver.  Unfortunately that
means it got a nonzero altsetting ... which is incorrect.  Issue
uncovered by Richard Röjfors <richard.rojfors@endian.se>.

This patch fixes that problem, and resolves at least some cases
of Windows XP bluescreening itself.

Tested-by: Richard Röjfors <richard.rojfors@endian.se>.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/f_rndis.c