]> Pileus Git - ~andy/linux/blobdiff - net/sched/sch_sfq.c
Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
[~andy/linux] / net / sched / sch_sfq.c
index 02a21abea65e20c207fe77d81f0240957c259970..d3a1bc26dbfc536350ebaaecfdcb5426b7eacec5 100644 (file)
@@ -812,7 +812,8 @@ static int sfq_dump(struct Qdisc *sch, struct sk_buff *skb)
        memcpy(&opt.stats, &q->stats, sizeof(opt.stats));
        opt.flags       = q->flags;
 
-       NLA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt);
+       if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt))
+               goto nla_put_failure;
 
        return skb->len;