diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2012-02-12 06:02:43 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-02 10:31:35 -0700 |
commit | 078ed3398254fa4217ac8b79265b6f3772ba193e (patch) | |
tree | 8d0665e5737356a2cd8028e603a117b9297a6256 | |
parent | dd47107e8aff416f9a91ec710c9f3241199adb10 (diff) |
cdc-wdm: Don't clear WDM_READ unless entire read buffer is emptied
commit b7a205545345578712611106b371538992e142ff upstream.
The WDM_READ flag is cleared later iff desc->length is reduced to 0.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Tested-by: Bjørn Mork <bjorn@mork.no>
Cc: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/class/cdc-wdm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c index 14278c4a357..2f085fbbaf2 100644 --- a/drivers/usb/class/cdc-wdm.c +++ b/drivers/usb/class/cdc-wdm.c @@ -457,7 +457,6 @@ retry: spin_unlock_irq(&desc->iuspin); goto retry; } - clear_bit(WDM_READ, &desc->flags); cntr = desc->length; spin_unlock_irq(&desc->iuspin); } |