From: Eric Dumazet Date: Wed, 26 Jan 2011 07:21:57 +0000 (+0000) Subject: net_sched: sch_mqprio: dont leak kernel memory X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=144ce879b057c760194d808c90826cd96308f423;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net_sched: sch_mqprio: dont leak kernel memory mqprio_dump() should make sure all fields of struct tc_mqprio_qopt are initialized. Signed-off-by: Eric Dumazet CC: John Fastabend Signed-off-by: David S. Miller --- diff --git a/net/sched/sch_mqprio.c b/net/sched/sch_mqprio.c index fbc6f53cb1b7..effd4ee0e880 100644 --- a/net/sched/sch_mqprio.c +++ b/net/sched/sch_mqprio.c @@ -215,7 +215,7 @@ static int mqprio_dump(struct Qdisc *sch, struct sk_buff *skb) struct net_device *dev = qdisc_dev(sch); struct mqprio_sched *priv = qdisc_priv(sch); unsigned char *b = skb_tail_pointer(skb); - struct tc_mqprio_qopt opt; + struct tc_mqprio_qopt opt = { 0 }; struct Qdisc *qdisc; unsigned int i;