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

David Marchand david.marchand at redhat.com
Thu Sep 17 09:49:09 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 e17050b625..71996b2b38 100644
--- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c
+++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c
@@ -470,6 +470,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