Skip to content

dmaengine: idxd: fix memory leak in error handling path

Shuai Xue dmaengine lkml 4 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. v4 Latest9 patches 7 repliesApplied
  2. v39 patches 16 repliesSuperseded
  3. v27 patches 17 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches13 repliesSuperseded

Changes in v4 from the cover letter

- remove a blank line to fix checkpatch warning per Fenghua
- collect Reviewed-by tags from Fenghua

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/9dmaengine: idxd: fix memory leak in error handling path of idxd_setup_wqsdrivers/dma/idxd/init.c+21 -90 replies
2/9dmaengine: idxd: fix memory leak in error handling path of idxd_setup_enginesdrivers/dma/idxd/init.c+4 -00 replies
3/9dmaengine: idxd: fix memory leak in error handling path of idxd_setup_groupsdrivers/dma/idxd/init.c+4 -00 replies
4/9dmaengine: idxd: Add missing cleanup for early error out in idxd_setup_internalsdrivers/dma/idxd/init.c+51 -71 reply
5/9dmaengine: idxd: Add missing cleanups in cleanup internalsdrivers/dma/idxd/init.c+3 -81 reply
6/9dmaengine: idxd: fix memory leak in error handling path of idxd_allocdrivers/dma/idxd/init.c+15 -90 replies
7/9dmaengine: idxd: fix memory leak in error handling path of idxd_pci_probedrivers/dma/idxd/init.c+12 -10 replies
8/9dmaengine: idxd: Add missing idxd cleanup to fix memory leak in remove calldrivers/dma/idxd/init.c+1 -01 reply
9/9dmaengine: idxd: Refactor remove call with idxd_cleanup() helperdrivers/dma/idxd/init.c+2 -121 reply

Reviews trailers per patch

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

PatchFenghua YuDave Jiang
1/9R-b R-b
2/9R-b R-b
3/9R-b R-b
4/9R-b R-b
5/9R-b R-b
6/9R-b R-b
7/9R-b R-b
8/9R-b R-b
9/9R-b R-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/9] dmaengine: idxd: fix memory leak in error handling path

changes since v3:
- remove a blank line to fix checkpatch warning per Fenghua
- collect Reviewed-by tags from Fenghua

changes since v2:
- add to cc stable per Markus
- add patch 4 to fix memory leak in idxd_setup_internals per Fenghua
- collect Reviewed-by tag for patch 2 from Fenghua
- fix reference cnt in remove() per Fenghua

changes since v1:
- add Reviewed-by tag for patch 1-5 from Dave Jiang
- add fixes tag
- add patch 6 and 7 to fix memory leak in remove call per Vinicius

Shuai Xue (9):
dmaengine: idxd: fix memory leak in error handling path of
idxd_setup_wqs
dmaengine: idxd: fix memory leak in error handling path of
idxd_setup_engines
dmaengine: idxd: fix memory leak in error handling path of
idxd_setup_groups
dmaengine: idxd: Add missing cleanup for early error out in
idxd_setup_internals
dmaengine: idxd: Add missing cleanups in cleanup internals
dmaengine: idxd: fix memory leak in error handling path of idxd_alloc
dmaengine: idxd: fix memory leak in error handling path of
idxd_pci_probe
dmaengine: idxd: Add missing idxd cleanup to fix memory leak in remove
call
dmaengine: idxd: Refactor remove call with idxd_cleanup() helper

 drivers/dma/idxd/init.c | 159 ++++++++++++++++++++++++++++------------
 1 file changed, 113 insertions(+), 46 deletions(-)
Signature · 1 line
2.43.5