diff options
Diffstat (limited to 'net/sched/act_mirred.c')
-rw-r--r-- | net/sched/act_mirred.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/sched/act_mirred.c b/net/sched/act_mirred.c index e051398fdf6b..d583aea3b3df 100644 --- a/net/sched/act_mirred.c +++ b/net/sched/act_mirred.c | |||
@@ -227,11 +227,13 @@ static int tcf_mirred_dump(struct sk_buff *skb, struct tc_action *a, int bind, i | |||
227 | }; | 227 | }; |
228 | struct tcf_t t; | 228 | struct tcf_t t; |
229 | 229 | ||
230 | NLA_PUT(skb, TCA_MIRRED_PARMS, sizeof(opt), &opt); | 230 | if (nla_put(skb, TCA_MIRRED_PARMS, sizeof(opt), &opt)) |
231 | goto nla_put_failure; | ||
231 | t.install = jiffies_to_clock_t(jiffies - m->tcf_tm.install); | 232 | t.install = jiffies_to_clock_t(jiffies - m->tcf_tm.install); |
232 | t.lastuse = jiffies_to_clock_t(jiffies - m->tcf_tm.lastuse); | 233 | t.lastuse = jiffies_to_clock_t(jiffies - m->tcf_tm.lastuse); |
233 | t.expires = jiffies_to_clock_t(m->tcf_tm.expires); | 234 | t.expires = jiffies_to_clock_t(m->tcf_tm.expires); |
234 | NLA_PUT(skb, TCA_MIRRED_TM, sizeof(t), &t); | 235 | if (nla_put(skb, TCA_MIRRED_TM, sizeof(t), &t)) |
236 | goto nla_put_failure; | ||
235 | return skb->len; | 237 | return skb->len; |
236 | 238 | ||
237 | nla_put_failure: | 239 | nla_put_failure: |