]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
USB: gadget rndis: send notifications
authorRichard Röjfors <richard.rojfors@endian.se>
Sun, 16 Nov 2008 03:53:24 +0000 (19:53 -0800)
committerGreg Kroah-Hartman <gregkh@kvm.kroah.org>
Thu, 20 Nov 2008 06:01:34 +0000 (22:01 -0800)
It turns out that atomic_inc_return() returns the *new* value
not the original one, so the logic in rndis_response_available()
kept the first RNDIS response notification from getting out.
This prevented interoperation with MS-Windows (but not Linux).

Fix this to make RNDIS behave again.

Signed-off-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>

No differences found