Skip to content

dmaengine: ti: k3-udma: Fix NULL pointer dereference error

Kishon Vijay Abraham I dmaengine lkml 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 0 repliesNew
  2. v32 patches 2 repliesSuperseded
  3. v2 posting 2/22 patches 1 replySuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/22 patches1 replySuperseded
v11 patch2 repliesSuperseded

Changes in v4 from the cover letter

1) Fix commit subject
2) Add "Acked-by: Peter Ujfalusi <[email protected]>" and cc'ed stable

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dmaengine: ti: k3-udma: Set bchan to NULL if a channel request faildrivers/dma/ti/k3-udma.c+6 -20 replies
2/2dmaengine: ti: k3-udma: Set r/tchan or rflow to NULL if request faildrivers/dma/ti/k3-udma.c+20 -40 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPeter Ujfalusi
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] dmaengine: ti: k3-udma: Fix NULL pointer dereference error

NULL pointer de-reference error was observed when all the PCIe endpoint functions (22 function in J721E) request a DMA channel. The issue was specfically observed when using mem-to-mem copy.

Changes from v3:
1) Fix commit subject
2) Add "Acked-by: Peter Ujfalusi <[email protected]>" and cc'ed stable

Changes from v2:
1) Fix commit subject and commit log to mention bchan/rchan/tchan to NULL suggested by Peter.

Changes from v1:
1) Split the patch for BCDMA and PKTDMA separately
2) Fixed the return value of udma_get_rflow() to 0.
3) Removed the fixes tag as the patches does not directly apply to the commits.

v1 => https://lore.kernel.org/r/[email protected]
v2 => https://lore.kernel.org/r/[email protected]
v3 => https://lore.kernel.org/r/[email protected]

Kishon Vijay Abraham I (2):
dmaengine: ti: k3-udma: Set bchan to NULL if a channel request fail
dmaengine: ti: k3-udma: Set r/tchan or rflow to NULL if request fail

 drivers/dma/ti/k3-udma.c | 32 ++++++++++++++++++++++++++------
 1 file changed, 26 insertions(+), 6 deletions(-)
Signature · 1 line
2.17.1