X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fsched%2Fsch_multiq.c;h=2a2b096d9a664b12a2fa7b4b9a91e4ff9b233f27;hb=e87cc4728f0e2fb663e592a1141742b1d6c63256;hp=49131d7a7446eafb22c121ce987f0fd7e4e233a5;hpb=0dbfe8ddaaab9fe5bc8672c064d3ede6cd66201a;p=~andy%2Flinux diff --git a/net/sched/sch_multiq.c b/net/sched/sch_multiq.c index 49131d7a744..2a2b096d9a6 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) opt.bands = q->bands; opt.max_bands = q->max_bands; - NLA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt); + if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) + goto nla_put_failure; return skb->len;