diff options
Diffstat (limited to 'net/sched/sch_api.c')
-rw-r--r-- | net/sched/sch_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 5bcef13408c8..1ef25e6ee1f9 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c | |||
@@ -422,6 +422,8 @@ static int qdisc_dump_stab(struct sk_buff *skb, struct qdisc_size_table *stab) | |||
422 | struct nlattr *nest; | 422 | struct nlattr *nest; |
423 | 423 | ||
424 | nest = nla_nest_start(skb, TCA_STAB); | 424 | nest = nla_nest_start(skb, TCA_STAB); |
425 | if (nest == NULL) | ||
426 | goto nla_put_failure; | ||
425 | NLA_PUT(skb, TCA_STAB_BASE, sizeof(stab->szopts), &stab->szopts); | 427 | NLA_PUT(skb, TCA_STAB_BASE, sizeof(stab->szopts), &stab->szopts); |
426 | nla_nest_end(skb, nest); | 428 | nla_nest_end(skb, nest); |
427 | 429 | ||