aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/class/cdc-wdm.c
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2012-02-12 06:02:43 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-02 09:27:04 -0700
commite6d2220d391eb13af9a742428f6d395e0a4dea5c (patch)
treeea04b837726fea40691b8a965f63755b8453137d /drivers/usb/class/cdc-wdm.c
parent3b804c7c32ed23181025a5184cae7e2d5a237f48 (diff)
downloadkernel_samsung_smdk4412-e6d2220d391eb13af9a742428f6d395e0a4dea5c.tar.gz
kernel_samsung_smdk4412-e6d2220d391eb13af9a742428f6d395e0a4dea5c.tar.bz2
kernel_samsung_smdk4412-e6d2220d391eb13af9a742428f6d395e0a4dea5c.zip
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>
Diffstat (limited to 'drivers/usb/class/cdc-wdm.c')
-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 9ad39db76c2..76f061375e1 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);
}