]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: dw-axi-dmac: ignore interrupt if no descriptor
authorBen Dooks <ben.dooks@sifive.com>
Fri, 8 Jul 2022 17:01:53 +0000 (18:01 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 21 Jul 2022 12:33:09 +0000 (18:03 +0530)
commit6844b70455f57a5b061cdc26ff02dcf3de567778
treee26345f5301503a6745a59ddec7b4a75d7d5744f
parentb46da1736f27808c918fac80266129edcbbbaedc
dmaengine: dw-axi-dmac: ignore interrupt if no descriptor

If the channel has no descriptor and the interrupt is raised then the
kernel will OOPS. Check the result of vchan_next_desc() in the handler
axi_chan_block_xfer_complete() to avoid the error happening.

Signed-off-by: Ben Dooks <ben.dooks@sifive.com>
Link: https://lore.kernel.org/r/20220708170153.269991-4-ben.dooks@sifive.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c