From: Radu Nicolau Date: Tue, 31 Jul 2018 14:16:21 +0000 (+0100) Subject: test: fix uninitialized port configuration X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f5929159465772a1284e9ea1b87462ef2ab90e94;p=dpdk.git test: fix uninitialized port configuration test_pmd_ring_pair_create_attach() uses an uninitialized struct rte_eth_conf object Fixes: 51f567129c94 ("app/test: add pmd_ring") Cc: stable@dpdk.org Signed-off-by: Radu Nicolau Acked-by: Bernard Iremonger --- diff --git a/test/test/test_pmd_ring.c b/test/test/test_pmd_ring.c index 2196201259..19d7d20a0e 100644 --- a/test/test/test_pmd_ring.c +++ b/test/test/test_pmd_ring.c @@ -218,6 +218,8 @@ test_pmd_ring_pair_create_attach(int portd, int porte) struct rte_mbuf buf, *pbuf = &buf; struct rte_eth_conf null_conf; + memset(&null_conf, 0, sizeof(struct rte_eth_conf)); + if ((rte_eth_dev_configure(portd, 1, 1, &null_conf) < 0) || (rte_eth_dev_configure(porte, 1, 1, &null_conf) < 0)) { printf("Configure failed for port\n");