From: Richard Röjfors Date: Sun, 16 Nov 2008 03:53:24 +0000 (-0800) Subject: USB: gadget rndis: send notifications X-Git-Tag: Release-2010-05/1~2^2~147 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6090e284ab3bb39ce5bc0913f68737222c552bf2;p=pandora-kernel.git USB: gadget rndis: send notifications 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 Signed-off-by: David Brownell Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed