Skip to content

dmaengine: miscellaneous fixes for ioat, switchtec_dma and plx_dma

Logan Gunthorpe dmaengine linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()drivers/dma/switchtec_dma.c+5 -10 replies
2/6dmaengine: switchtec-dma: fix resource leak in alloc_chan_resourcesdrivers/dma/switchtec_dma.c+19 -40 replies
3/6dmaengine: switchtec-dma: fix channel leak on registration failuredrivers/dma/switchtec_dma.c+6 -10 replies
4/6dmaengine: ioat: disable relaxed ordering before registering the devicedrivers/dma/ioat/init.c+9 -90 replies
5/6dmaengine: ioat: use sysfs_emit() in per-channel sysfs show()drivers/dma/ioat/sysfs.c+11 -110 replies
6/6dmaengine: plx_dma: fix NULL pointer deref in plx_dma_isr()drivers/dma/plx_dma.c+5 -50 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v1 0/6] dmaengine: miscellaneous fixes for ioat, switchtec_dma and plx_dma

When reviewing the recent switchtec patchset, the Sashiko bot noticed a handful of pre-existing problems in the ioat and switchtec drivers. Additionally, I've included:

* A fix for a plx-dma issue that was reported on the list[1] a few weeks ago.
* A potential issue I noticed while reviewing the code where pointers need to be set to NULL.

These fixes are all valid and independent of the work I was doing so I've sent them as their own submission. I'm still working on the rest of the feedback Sashiko gave me on that submission.

Thanks,

Logan

[1] https://lore.kernel.org/all/[email protected]/T/#u

Logan Gunthorpe (6):
dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()
dmaengine: switchtec-dma: fix resource leak in alloc_chan_resources
dmaengine: switchtec-dma: fix channel leak on registration failure
dmaengine: ioat: disable relaxed ordering before registering the
device
dmaengine: ioat: use sysfs_emit() in per-channel sysfs show()
dmaengine: plx_dma: fix NULL pointer deref in plx_dma_isr()

 drivers/dma/ioat/init.c     | 18 +++++++++---------
 drivers/dma/ioat/sysfs.c    | 22 +++++++++++-----------
 drivers/dma/plx_dma.c       | 10 +++++-----
 drivers/dma/switchtec_dma.c | 36 ++++++++++++++++++++++++++++++------
 4 files changed, 55 insertions(+), 31 deletions(-)

base-commit: a13c140cc289c0b7b3770bce5b3ad42ab35074aa

Signature · 1 line
2.47.3