]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: usb-dmac: fix endless loop in usb_dmac_chan_terminate_all()
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 12 Nov 2015 04:37:40 +0000 (13:37 +0900)
committerVinod Koul <vinod.koul@intel.com>
Sat, 5 Dec 2015 08:07:51 +0000 (13:37 +0530)
commit9779a1e725ad89ef4829730061814f1f058dd7f1
tree2fae86741445e847c585f22eaeddad165e9dcec6
parent837e0eb1c9d194f0eb3cf87d97b2235de146c9fe
dmaengine: usb-dmac: fix endless loop in usb_dmac_chan_terminate_all()

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@renesas.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/usb-dmac.c