]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitd9f5efade2cfd729138a7cafb46d01044da40f5e
tree2fae86741445e847c585f22eaeddad165e9dcec6
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
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