diff options
Diffstat (limited to 'net/sched/sch_generic.c')
-rw-r--r-- | net/sched/sch_generic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index 67fc573e013a..0eb1202c22a6 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c | |||
@@ -512,7 +512,8 @@ static int pfifo_fast_dump(struct Qdisc *qdisc, struct sk_buff *skb) | |||
512 | struct tc_prio_qopt opt = { .bands = PFIFO_FAST_BANDS }; | 512 | struct tc_prio_qopt opt = { .bands = PFIFO_FAST_BANDS }; |
513 | 513 | ||
514 | memcpy(&opt.priomap, prio2band, TC_PRIO_MAX + 1); | 514 | memcpy(&opt.priomap, prio2band, TC_PRIO_MAX + 1); |
515 | NLA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt); | 515 | if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) |
516 | goto nla_put_failure; | ||
516 | return skb->len; | 517 | return skb->len; |
517 | 518 | ||
518 | nla_put_failure: | 519 | nla_put_failure: |