From 04d3f6bc97066d355291b56ccdb3e9b11e864852 Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Mon, 5 Nov 2018 15:31:21 +0000 Subject: [PATCH] net/tap: fix possible uninitialized variable access Fixes: 7c25284e30c2 ("net/tap: add netlink back-end for flow API") Cc: stable@dpdk.org Signed-off-by: Ferruh Yigit --- drivers/net/tap/tap_tcmsgs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/tap/tap_tcmsgs.c b/drivers/net/tap/tap_tcmsgs.c index 3c9d036672..b478b5951e 100644 --- a/drivers/net/tap/tap_tcmsgs.c +++ b/drivers/net/tap/tap_tcmsgs.c @@ -116,7 +116,7 @@ error: int qdisc_add_multiq(int nlsk_fd, uint16_t ifindex) { - struct tc_multiq_qopt opt; + struct tc_multiq_qopt opt = {0}; struct nlmsg msg; tc_init_msg(&msg, ifindex, RTM_NEWQDISC, -- 2.20.1