Re: [PATCH] usb: cdc-wdm: Fix "scheduling while atomic" after failed write

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

 



Am Donnerstag, 26. April 2012, 15:41:15 schrieb Bjørn Mork:

> Note that there is a significant delay (several seconds - up to a
> minute) before the actual lockup. Unloading the cdc-wdm driver during
> this stage does not prevent the bug, and does not cause any immediate
> crash either.  So I believe this must be related to data living in the
> usb subsystem?  Do we free a buffer referenced by an URB?
> 
> > And could you provide an oops?
> 
> A couple of the samples.  Using qmi_wwan with cdc-wdm as a subdriver:
> 
> [  449.521234] qmi_wwan 5-4:1.8: Tx URB has been submitted index=8

from wdm_write()

This means that  set_bit(WDM_IN_USE, &desc->flags) has been executed

> [  449.523575] qmi_wwan 5-4:1.8: wdm_release: cleanup

wdm_release() so wdm_flush() also has run. It will put itself on the waitqueue.
Very bad if disconnect() has freed the memory.


Please put in the printks

	Regards
		Oliver
--
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