From c8d5690060aa574c540d4575473f62142aff4d23 Mon Sep 17 00:00:00 2001 From: Raslan Darawsheh Date: Tue, 26 Feb 2019 09:50:56 +0000 Subject: [PATCH] net/tap: fix multi-process request The structure was not initialized. Fixes: c9aa56edec8e ("net/tap: access primary process queues from secondary") Cc: stable@dpdk.org Signed-off-by: Raslan Darawsheh Reviewed-by: Rami Rosen --- drivers/net/tap/rte_eth_tap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 586c8a952d..6f5109fca5 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/tap/rte_eth_tap.c @@ -2086,6 +2086,7 @@ tap_mp_attach_queues(const char *port_name, struct rte_eth_dev *dev) int queue, fd_iterator; /* Prepare the request */ + memset(&request, 0, sizeof(request)); strlcpy(request.name, TAP_MP_KEY, sizeof(request.name)); strlcpy(request_param->port_name, port_name, sizeof(request_param->port_name)); -- 2.20.1