Clear the warning when freeing the interrupt handle used for the uevent
handler.

Fixes: d770ee9caed0 ("interrupts: warn on leaked FDs")

Signed-off-by: David Marchand <[email protected]>
---
 lib/eal/linux/eal_dev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/eal/linux/eal_dev.c b/lib/eal/linux/eal_dev.c
index 35223b6b26..1c8ae1d60b 100644
--- a/lib/eal/linux/eal_dev.c
+++ b/lib/eal/linux/eal_dev.c
@@ -366,7 +366,7 @@ rte_dev_event_monitor_start(void)
        ret = rte_intr_callback_register(intr_handle, dev_uev_handler, NULL);
 
        if (ret) {
-               close(rte_intr_fd_get(intr_handle));
+               rte_intr_fd_close(intr_handle);
                goto exit;
        }
 
@@ -406,7 +406,7 @@ rte_dev_event_monitor_stop(void)
                goto exit;
        }
 
-       close(rte_intr_fd_get(intr_handle));
+       rte_intr_fd_close(intr_handle);
        rte_intr_instance_free(intr_handle);
        intr_handle = NULL;
        ret = 0;
-- 
2.54.0

Reply via email to