projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
682a169
)
net_sched: sch_mqprio: dont leak kernel memory
author
Eric Dumazet
<eric.dumazet@gmail.com>
Wed, 26 Jan 2011 07:21:57 +0000
(07:21 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 26 Jan 2011 21:15:29 +0000
(13:15 -0800)
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>
net/sched/sch_mqprio.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sched/sch_mqprio.c
b/net/sched/sch_mqprio.c
index fbc6f53cb1b777783a19b1b237f76ee6eec038c0..effd4ee0e88066cf2a34460266fcb842a5fda852 100644
(file)
--- 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;
This page took
0.025061 seconds
and
5
git commands to generate.