Re: [PATCH v2] USB: cdc-wdm: fix lockup on error in wdm_read

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: <stable@xxxxxxxxxxxxxxx>
> Signed-off-by: Bjørn Mork <bjorn@xxxxxxx>

Acked-by: Oliver Neukum <oneukum@xxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux