From: Ferruh Yigit Date: Mon, 5 Nov 2018 15:31:21 +0000 (+0000) Subject: net/tap: fix possible uninitialized variable access X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=04d3f6bc97066d355291b56ccdb3e9b11e864852;p=dpdk.git 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 --- 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,