diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/f_rndis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_rndis.c b/drivers/usb/gadget/f_rndis.c index 8afb14a4a72f..428b5993575a 100644 --- a/drivers/usb/gadget/f_rndis.c +++ b/drivers/usb/gadget/f_rndis.c | |||
@@ -302,7 +302,7 @@ static void rndis_response_available(void *_rndis) | |||
302 | __le32 *data = req->buf; | 302 | __le32 *data = req->buf; |
303 | int status; | 303 | int status; |
304 | 304 | ||
305 | if (atomic_inc_return(&rndis->notify_count)) | 305 | if (atomic_inc_return(&rndis->notify_count) != 1) |
306 | return; | 306 | return; |
307 | 307 | ||
308 | /* Send RNDIS RESPONSE_AVAILABLE notification; a | 308 | /* Send RNDIS RESPONSE_AVAILABLE notification; a |