Skip to contentSkip to conversation

net/tap: fix possible uninitialized variable access

PATCH Applied Ferruh Yigit 1 participant 2 messages Nov 5, 2018 – Dec 21, 2018 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/tap: fix possible uninitialized variable access

Fixes 7c25284e30c2 ("net/tap: add netlink back-end for flow API")

---
Cc: [email protected]

---
 drivers/net/tap/tap_tcmsgs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/tap/tap_tcmsgs.c +1 -1
index 3c9d03667..b478b5951 100644
@@ -116,7 +116,7 @@ qdisc_del(int nlsk_fd, uint16_t ifindex, struct qdisc *qinfo)
 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,
Signature · 1 line
2.17.2