Commit b7a20554 authored by Ben Hutchings's avatar Ben Hutchings Committed by Greg Kroah-Hartman

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: default avatarBen Hutchings <ben@decadent.org.uk>
Tested-by: default avatarBjørn Mork <bjorn@mork.no>
Cc: Oliver Neukum <oliver@neukum.org>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0cedc4e1
......@@ -455,7 +455,6 @@ static ssize_t wdm_read
spin_unlock_irq(&desc->iuspin);
goto retry;
}
clear_bit(WDM_READ, &desc->flags);
cntr = desc->length;
spin_unlock_irq(&desc->iuspin);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment