Skip to content

dpaa2: fix error propagation in remove path

Md Shofiqul Islam dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- bus/fslmc: use 'if (ret != 0)' style per DPDK coding standard

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bus/fslmc: fix ignored return value in fslmc_bus_unplugdrivers/bus/fslmc/fslmc_bus.c+3 -11 reply
2/2dma/dpaa2: fix dpaa2_qdma_remove always returning successdrivers/dma/dpaa2/dpaa2_qdma.c+1 -11 reply

Reviews trailers per patch

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

PatchHemant Agrawal
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 v2 thread

Cover letter [PATCH v2 0/2] dpaa2: fix error propagation in remove path

This series fixes two bugs in the dpaa2/fslmc device removal path where error codes were silently discarded, making it impossible for callers to detect removal failures.

Patch 1 fixes fslmc_bus_unplug() to capture and propagate the return value of drv->remove() instead of ignoring it.

Patch 2 fixes dpaa2_qdma_remove() to return the actual error code from rte_dma_pmd_release() instead of unconditionally returning 0.

v2:
- bus/fslmc: use 'if (ret != 0)' style per DPDK coding standard

Md Shofiqul Islam (2):
bus/fslmc: fix ignored return value in fslmc_bus_unplug dma/dpaa2: fix dpaa2_qdma_remove always returning success

 drivers/bus/fslmc/fslmc_bus.c  | 4 +++-
 drivers/dma/dpaa2/dpaa2_qdma.c | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
2.51.1