aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/class
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2012-02-12 01:02:43 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-24 16:12:14 -0500
commitb7a205545345578712611106b371538992e142ff (patch)
treef725698c4e76afbfe95569ef73a735a30cf6ca37 /drivers/usb/class
parent0cedc4e1c870d5d4811b3ed2aca98b41334f10e4 (diff)
cdc-wdm: Don't clear WDM_READ unless entire read buffer is emptied
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> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/class')
-rw-r--r--drivers/usb/class/cdc-wdm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c
index 7ca54d4dea92..6037b503153f 100644
--- a/drivers/usb/class/cdc-wdm.c
+++ b/drivers/usb/class/cdc-wdm.c
@@ -455,7 +455,6 @@ retry:
455 spin_unlock_irq(&desc->iuspin); 455 spin_unlock_irq(&desc->iuspin);
456 goto retry; 456 goto retry;
457 } 457 }
458 clear_bit(WDM_READ, &desc->flags);
459 cntr = desc->length; 458 cntr = desc->length;
460 spin_unlock_irq(&desc->iuspin); 459 spin_unlock_irq(&desc->iuspin);
461 } 460 }