patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH V2 4/7] common/mlx5: fix Netlink socket leak
       [not found] ` <20241028091822.860660-1-gavinl@nvidia.com>
@ 2024-10-28  9:18   ` Minggang Li(Gavin)
  0 siblings, 0 replies; only message in thread
From: Minggang Li(Gavin) @ 2024-10-28  9:18 UTC (permalink / raw)
  To: viacheslavo, matan, orika, thomas, Dariusz Sosnowski, Bing Zhao,
	Suanming Mou, Spike Du
  Cc: dev, rasland, stable

Fixes: 72d7efe464b1 ("common/mlx5: share interrupt management")
Cc: stable@dpdk.org

Signed-off-by: Minggang Li(Gavin) <gavinl@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
---
 drivers/net/mlx5/linux/mlx5_os.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/mlx5/linux/mlx5_os.c b/drivers/net/mlx5/linux/mlx5_os.c
index 4c2caa21e9..8df45ef010 100644
--- a/drivers/net/mlx5/linux/mlx5_os.c
+++ b/drivers/net/mlx5/linux/mlx5_os.c
@@ -3076,10 +3076,15 @@ mlx5_os_dev_shared_handler_install(struct mlx5_dev_ctx_shared *sh)
 void
 mlx5_os_dev_shared_handler_uninstall(struct mlx5_dev_ctx_shared *sh)
 {
+	int fd;
+
 	mlx5_os_interrupt_handler_destroy(sh->intr_handle,
 					  mlx5_dev_interrupt_handler, sh);
+	fd = rte_intr_fd_get(sh->intr_handle_nl);
 	mlx5_os_interrupt_handler_destroy(sh->intr_handle_nl,
 					  mlx5_dev_interrupt_handler_nl, sh);
+	if (fd >= 0)
+		close(fd);
 #ifdef HAVE_IBV_DEVX_ASYNC
 	mlx5_os_interrupt_handler_destroy(sh->intr_handle_devx,
 					  mlx5_dev_interrupt_handler_devx, sh);
-- 
2.34.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-10-28  9:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20241016083818.662020-8-gavinl@nvidia.com>
     [not found] ` <20241028091822.860660-1-gavinl@nvidia.com>
2024-10-28  9:18   ` [PATCH V2 4/7] common/mlx5: fix Netlink socket leak Minggang Li(Gavin)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).