From 321908b6e3fe8347970edf06ff38f82e70cd6ef2 Mon Sep 17 00:00:00 2001 From: Vadim Podovinnikov Date: Sat, 4 Apr 2020 13:15:57 +0300 Subject: [PATCH] net/memif: fix resource leak Fixes: c41a04958b09 ("net/memif: support multi-process") Cc: stable@dpdk.org Signed-off-by: Vadim Podovinnikov Reviewed-by: Ferruh Yigit --- drivers/net/memif/rte_eth_memif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/memif/rte_eth_memif.c b/drivers/net/memif/rte_eth_memif.c index 81d71c53a7..653ffa9b8c 100644 --- a/drivers/net/memif/rte_eth_memif.c +++ b/drivers/net/memif/rte_eth_memif.c @@ -1510,7 +1510,7 @@ memif_create(struct rte_vdev_device *vdev, enum memif_role_t role, } - eth_dev->data->dev_flags &= RTE_ETH_DEV_CLOSE_REMOVE; + eth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE; rte_eth_dev_probing_finish(eth_dev); -- 2.20.1