net/tap: fix possible uninitialized variable access
authorFerruh Yigit <ferruh.yigit@intel.com>
Mon, 5 Nov 2018 15:31:21 +0000 (15:31 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 21 Dec 2018 15:22:41 +0000 (16:22 +0100)
Fixes: 7c25284e30c2 ("net/tap: add netlink back-end for flow API")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/tap/tap_tcmsgs.c

index 3c9d036..b478b59 100644 (file)
@@ -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,