USB: gadget rndis: stop windows self-immolation
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 16 Nov 2008 03:53:21 +0000 (19:53 -0800)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 15 Feb 2009 15:27:49 +0000 (17:27 +0200)
commit86f4831829db0c5dcacadf23e53d41c9e3de6ff7
tree9019aac2393c7393ec9f01c84014d5bae9583f0b
parentdb608fddefb3b94e5c63f7f8be5e3533e9f6551b
USB: gadget rndis: stop windows self-immolation

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