Commit 16ebb5e0 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

tc: Fix unitialized kernel memory leak

Three bytes of uninitialized kernel memory are currently leaked to user
Signed-off-by: default avatarEric Dumazet <>
Reviewed-by: default avatarJiri Pirko <>
Signed-off-by: default avatarDavid S. Miller <>
parent 2fbd3da3
......@@ -1456,6 +1456,8 @@ static int tc_fill_tclass(struct sk_buff *skb, struct Qdisc *q,
nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*tcm), flags);
tcm = NLMSG_DATA(nlh);
tcm->tcm_family = AF_UNSPEC;
tcm->tcm__pad1 = 0;
tcm->tcm__pad2 = 0;
tcm->tcm_ifindex = qdisc_dev(q)->ifindex;
tcm->tcm_parent = q->handle;
tcm->tcm_handle = q->handle;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment