Skip to content

Fix IDXD PCI device close

Kevin Laatz dpdk-dev 3 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 2 repliesApplied
  2. v23 patches 6 repliesSuperseded
  3. v15 patches 9 repliesSuperseded

Changes in v3 from the cover letter

* move ref_count increment from common create to pci probe
* improve commit messages

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3dma/idxd: fix memory leak in pci closedrivers/dma/idxd/idxd_internal.h drivers/dma/idxd/idxd_pci.c+30 -71 reply
2/3dma/idxd: fix memory leak due to free on incorrect pointerdrivers/dma/idxd/idxd_pci.c+1 -10 replies
3/3dma/idxd: fix null pointer dereference during pci removedrivers/dma/idxd/idxd_pci.c+4 -40 replies

Reviews trailers per patch

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

PatchBruce Richardson
1/3A-b
2/3A-b
3/3A-b

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

Read the v3 thread

Cover letter [PATCH v3 0/3] Fix IDXD PCI device close

This patchset addresses the device close for IDXD PCI devices. Initially, there was a memory leak reported by ASAN for the 'pci' member of the 'idxd_dmadev' struct due to a missing free. In addition, this patch set corrects the behaviour of the device close function to ensure the cleanup is completed correctly.

Depends-on: patch-112376 ("eal: add device removal in rte cleanup")

---
v3:
* move ref_count increment from common create to pci probe
* improve commit messages

v2:
* remove changes to applications (no longer needed with EAL changes)
* add fix for NULL pointer dereference in pci remove

Kevin Laatz (3):
dma/idxd: fix memory leak in pci close
dma/idxd: fix memory leak due to free on incorrect pointer dma/idxd: fix null pointer dereference during pci remove

 drivers/dma/idxd/idxd_internal.h |  2 ++
 drivers/dma/idxd/idxd_pci.c      | 45 +++++++++++++++++++++++---------
 2 files changed, 35 insertions(+), 12 deletions(-)
Signature · 1 line
2.31.1