Skip to content

dmaengine: Fix teardown races, resource leaks, and error handling

Lee Jones dmaengine linux-amlogic linux-arm-kernel linux-mips lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10dmaengine: pl08x: Defer OF DMA controller registration until slave setupdrivers/dma/amba-pl08x.c+23 -00 replies
2/10dmaengine: ae4dma: Unregister DMA engine in ae4_pci_remove()drivers/dma/amd/ae4dma/ae4dma-pci.c drivers/dma/amd/ptdma/ptdma-dmaengine.c+2 -00 replies
3/10dmaengine: ptdma: Unmap descriptor in pt_do_cleanup()drivers/dma/amd/ptdma/ptdma-dmaengine.c+1 -00 replies
4/10dmaengine: ptdma: Remove completed descriptor under vc.lock in pt_cmd_callback_work()drivers/dma/amd/ptdma/ptdma-dmaengine.c+1 -10 replies
5/10dmaengine: amlogic: Destroy free_wq after devres DMA device unregistrationdrivers/dma/amlogic-dma.c+1 -20 replies
6/10dmaengine: arm-dma350: Query dma_cookie_status() under vc.lock in d350_tx_status()drivers/dma/arm-dma350.c+1 -20 replies
7/10dmaengine: bestcomm: Defer publishing bcom_eng until initialisation completesdrivers/dma/bestcomm/bestcomm.c+36 -330 replies
8/10dmaengine: bestcomm: Check rh_create() return value in bcom_sram_init()drivers/dma/bestcomm/sram.c+6 -00 replies
9/10dmaengine: jz4780: Fix descriptor cleanup on hwdesc setup failuredrivers/dma/dma-jz4780.c+3 -20 replies
10/10dmaengine: dmatest: Avoid unsigned underflow in min_odd()drivers/dma/dmatest.c+6 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] dmaengine: Fix teardown races, resource leaks, and error handling

These issues were reported by Sashiko.

Cc Akinobu Mita <[email protected]>
Cc Alex Smith <[email protected]>
Cc Andrey Volkov <[email protected]>
Cc Basavaraj Natikar <[email protected]>
Cc Colin Ian King <[email protected]>
Cc Dale Farnsworth <[email protected]>
Cc Frank Li <[email protected]>
Cc Gary R Hook <[email protected]>
Cc Grant Likely <[email protected]>
Cc Jacky Huang <[email protected]>
Cc Joachim Eastwood <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Paul Cercueil <[email protected]>
Cc Peter Pearse <[email protected]>
Cc Philipp Stanner <[email protected]>
Cc Raju Rangoju <[email protected]>
Cc Robin Murphy <[email protected]>
Cc Sanjay R Mehta <[email protected]>
Cc Shan-Chun Hung <[email protected]>
Cc Sylvain Munaut <[email protected]>
Cc Vinod Koul <[email protected]>
Cc Xianwei Zhao <[email protected]>
Cc Zubair Lutfullah Kakakhel <[email protected]>

Lee Jones (10):
dmaengine: pl08x: Defer OF DMA controller registration until slave
setup
dmaengine: ae4dma: Unregister DMA engine in ae4_pci_remove()
dmaengine: ptdma: Unmap descriptor in pt_do_cleanup()
dmaengine: ptdma: Remove completed descriptor under vc.lock in
pt_cmd_callback_work()
dmaengine: amlogic: Destroy free_wq after devres DMA device
unregistration
dmaengine: arm-dma350: Query dma_cookie_status() under vc.lock in

    d350_tx_status()

dmaengine: bestcomm: Defer publishing bcom_eng until initialisation
completes
dmaengine: bestcomm: Check rh_create() return value in
bcom_sram_init()
dmaengine: jz4780: Fix descriptor cleanup on hwdesc setup failure
dmaengine: dmatest: Avoid unsigned underflow in min_odd()

 drivers/dma/amba-pl08x.c                | 23 +++++++++
 drivers/dma/amd/ae4dma/ae4dma-pci.c     |  1 +
 drivers/dma/amd/ptdma/ptdma-dmaengine.c |  4 +-
 drivers/dma/amlogic-dma.c               |  3 +-
 drivers/dma/arm-dma350.c                |  3 +-
 drivers/dma/bestcomm/bestcomm.c         | 69 +++++++++++++------------
 drivers/dma/bestcomm/sram.c             |  6 +++
 drivers/dma/dma-jz4780.c                |  5 +-
 drivers/dma/dmatest.c                   |  6 +++
 9 files changed, 80 insertions(+), 40 deletions(-)
Signature · 1 line
2.56.0.567.gdb80ae8cd5-goog