Re: [PATCH ] dmaengine: usb-dmac: fix endless loop in usb_dmac_chan_terminate_all()

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

 



On Thu, May 31, 2018 at 09:48:24AM +0100, Biju Das wrote:
> From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
> 
> commit d9f5efade2cfd729138a7cafb46d01044da40f5e upstream
> 
> This patch fixes an issue that list_for_each_entry() in
> usb_dmac_chan_terminate_all() is possible to cause endless loop because
> this will move own desc to the desc_freed. So, this driver should use
> list_for_each_entry_safe() instead of list_for_each_entry().
> 
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
> Signed-off-by: Vinod Koul <vinod.koul@xxxxxxxxx>
> [biju: cherry-pick to 4.4]
> Signed-off-by: Biju Das <biju.das@xxxxxxxxxxxxxx>
> ---
> Hello Greg,
> 
> I have observed a CPU lock condition with USB DMAC driver on koelsch platform. 
> This patch fixes the issue on 4.4 stable. It is reproducible with ethernet(RNDIS/ECM)
> gadget configuration.

Now applied, thanks.

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux