projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31bd06e
)
[PKT_SCHED]: Fix memory leak when dumping in pedit action
author
Patrick McHardy
<kaber@trash.net>
Mon, 9 Jan 2006 06:17:27 +0000
(22:17 -0800)
committer
David S. Miller
<davem@sunset.davemloft.net>
Mon, 9 Jan 2006 22:16:12 +0000
(14:16 -0800)
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/pedit.c
patch
|
blob
|
history
diff --git
a/net/sched/pedit.c
b/net/sched/pedit.c
index b5167afec2dc748b1d2583fb7a17d275a31c5a76..1742a68e0122a134a9e4430c5e96a762a3f3061a 100644
(file)
--- a/
net/sched/pedit.c
+++ b/
net/sched/pedit.c
@@
-245,10
+245,12
@@
tcf_pedit_dump(struct sk_buff *skb, struct tc_action *a,int bind, int ref)
t.lastuse = jiffies_to_clock_t(jiffies - p->tm.lastuse);
t.expires = jiffies_to_clock_t(p->tm.expires);
RTA_PUT(skb, TCA_PEDIT_TM, sizeof(t), &t);
+ kfree(opt);
return skb->len;
rtattr_failure:
skb_trim(skb, b - skb->data);
+ kfree(opt);
return -1;
}