[PATCH 09/16] bus/fslmc: fix interrupt leak in DPIO cleanup

David Marchand david.marchand at redhat.com
Wed Oct 14 19:39:52 CEST 2026


The interrupt handle in the DPIO device is separate from the bus device
object handle. The cleanup code was leaking this handle.

Fixes: 274fd921ff7f ("bus/fslmc: support close operation")

Signed-off-by: David Marchand <david.marchand at redhat.com>
---
 drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c
index 9fe449ed38..0776251d4d 100644
--- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c
+++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c
@@ -476,6 +476,7 @@ dpaa2_close_dpio_device(int object_id)
 			rte_free(dpio_dev->dpio);
 		}
 		TAILQ_REMOVE(&dpio_dev_list, dpio_dev, next);
+		rte_intr_instance_free(dpio_dev->intr_handle);
 		rte_free(dpio_dev);
 	}
 }
-- 
2.54.0



More information about the dev mailing list