diff options
Diffstat (limited to 'net/sched/act_pedit.c')
-rw-r--r-- | net/sched/act_pedit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/sched/act_pedit.c b/net/sched/act_pedit.c index 10d3aed86560..26aa2f6ce257 100644 --- a/net/sched/act_pedit.c +++ b/net/sched/act_pedit.c | |||
@@ -215,11 +215,13 @@ static int tcf_pedit_dump(struct sk_buff *skb, struct tc_action *a, | |||
215 | opt->refcnt = p->tcf_refcnt - ref; | 215 | opt->refcnt = p->tcf_refcnt - ref; |
216 | opt->bindcnt = p->tcf_bindcnt - bind; | 216 | opt->bindcnt = p->tcf_bindcnt - bind; |
217 | 217 | ||
218 | NLA_PUT(skb, TCA_PEDIT_PARMS, s, opt); | 218 | if (nla_put(skb, TCA_PEDIT_PARMS, s, opt)) |
219 | goto nla_put_failure; | ||
219 | t.install = jiffies_to_clock_t(jiffies - p->tcf_tm.install); | 220 | t.install = jiffies_to_clock_t(jiffies - p->tcf_tm.install); |
220 | t.lastuse = jiffies_to_clock_t(jiffies - p->tcf_tm.lastuse); | 221 | t.lastuse = jiffies_to_clock_t(jiffies - p->tcf_tm.lastuse); |
221 | t.expires = jiffies_to_clock_t(p->tcf_tm.expires); | 222 | t.expires = jiffies_to_clock_t(p->tcf_tm.expires); |
222 | NLA_PUT(skb, TCA_PEDIT_TM, sizeof(t), &t); | 223 | if (nla_put(skb, TCA_PEDIT_TM, sizeof(t), &t)) |
224 | goto nla_put_failure; | ||
223 | kfree(opt); | 225 | kfree(opt); |
224 | return skb->len; | 226 | return skb->len; |
225 | 227 | ||