diff options
Diffstat (limited to 'net/sched/sch_multiq.c')
-rw-r--r-- | net/sched/sch_multiq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/sch_multiq.c b/net/sched/sch_multiq.c index 49131d7a7446..2a2b096d9a66 100644 --- a/net/sched/sch_multiq.c +++ b/net/sched/sch_multiq.c | |||
@@ -284,7 +284,8 @@ static int multiq_dump(struct Qdisc *sch, struct sk_buff *skb) | |||
284 | opt.bands = q->bands; | 284 | opt.bands = q->bands; |
285 | opt.max_bands = q->max_bands; | 285 | opt.max_bands = q->max_bands; |
286 | 286 | ||
287 | NLA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt); | 287 | if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) |
288 | goto nla_put_failure; | ||
288 | 289 | ||
289 | return skb->len; | 290 | return skb->len; |
290 | 291 | ||