From: Vadim Podovinnikov Date: Sat, 4 Apr 2020 10:15:57 +0000 (+0300) Subject: net/memif: fix resource leak X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=321908b6e3fe8347970edf06ff38f82e70cd6ef2;p=dpdk.git 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 --- 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);