diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-09-02 04:40:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-03 07:55:17 +0200 |
commit | 16ebb5e0b36ceadc8186f71d68b0c4fa4b6e781b (patch) | |
tree | 4a89b7591d0f4478d0dda12db649db2d94d16929 /net | |
parent | pkt_sched: Revert tasklet_hrtimer changes. (diff) | |
download | linux-16ebb5e0b36ceadc8186f71d68b0c4fa4b6e781b.tar.xz linux-16ebb5e0b36ceadc8186f71d68b0c4fa4b6e781b.zip |
tc: Fix unitialized kernel memory leak
Three bytes of uninitialized kernel memory are currently leaked to user
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Reviewed-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/sch_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 24d17ce9c294..fdb694e9f759 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -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; |