Am Montag, 2. Juli 2012, 10:33:14 schrieb Bjørn Mork:
> The WDM_READ flag is normally cleared by wdm_int_callback
> before resubmitting the read urb, and set by wdm_in_callback
> when this urb returns with data or an error.  But a crashing
> device may cause both a read error and cancelling all urbs.
> Make sure that the flag is cleared by wdm_read if the buffer
> is empty.
> 
> We don't clear the flag on errors, as there may be pending
> data in the buffer which should be processed.  The flag will
> instead be cleared on the next wdm_read call.
> 
> Cc: <[email protected]>
> Signed-off-by: Bjørn Mork <[email protected]>

Acked-by: Oliver Neukum <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to