aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-01-26 02:21:57 -0500
committerDavid S. Miller <davem@davemloft.net>2011-01-26 16:15:29 -0500
commit144ce879b057c760194d808c90826cd96308f423 (patch)
treecb98182f790baedda1e17c37e43b677b1912cac2 /net/sched
parent682a1694115ec1c8fcd794c35b80354166978207 (diff)
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 <eric.dumazet@gmail.com> CC: John Fastabend <john.r.fastabend@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/sch_mqprio.c2
1 files changed, 1 insertions, 1 deletions
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)
215 struct net_device *dev = qdisc_dev(sch); 215 struct net_device *dev = qdisc_dev(sch);
216 struct mqprio_sched *priv = qdisc_priv(sch); 216 struct mqprio_sched *priv = qdisc_priv(sch);
217 unsigned char *b = skb_tail_pointer(skb); 217 unsigned char *b = skb_tail_pointer(skb);
218 struct tc_mqprio_qopt opt; 218 struct tc_mqprio_qopt opt = { 0 };
219 struct Qdisc *qdisc; 219 struct Qdisc *qdisc;
220 unsigned int i; 220 unsigned int i;
221 221