aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/pedit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sched/pedit.c b/net/sched/pedit.c
index b5167afec2dc..1742a68e0122 100644
--- 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)
245 t.lastuse = jiffies_to_clock_t(jiffies - p->tm.lastuse); 245 t.lastuse = jiffies_to_clock_t(jiffies - p->tm.lastuse);
246 t.expires = jiffies_to_clock_t(p->tm.expires); 246 t.expires = jiffies_to_clock_t(p->tm.expires);
247 RTA_PUT(skb, TCA_PEDIT_TM, sizeof(t), &t); 247 RTA_PUT(skb, TCA_PEDIT_TM, sizeof(t), &t);
248 kfree(opt);
248 return skb->len; 249 return skb->len;
249 250
250rtattr_failure: 251rtattr_failure:
251 skb_trim(skb, b - skb->data); 252 skb_trim(skb, b - skb->data);
253 kfree(opt);
252 return -1; 254 return -1;
253} 255}
254 256