diff options
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 408eea7086aa..6fb3d41c0e41 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c | |||
@@ -360,7 +360,7 @@ static struct qdisc_size_table *qdisc_get_stab(struct nlattr *opt) | |||
360 | tsize = nla_len(tb[TCA_STAB_DATA]) / sizeof(u16); | 360 | tsize = nla_len(tb[TCA_STAB_DATA]) / sizeof(u16); |
361 | } | 361 | } |
362 | 362 | ||
363 | if (!s || tsize != s->tsize || (!tab && tsize > 0)) | 363 | if (tsize != s->tsize || (!tab && tsize > 0)) |
364 | return ERR_PTR(-EINVAL); | 364 | return ERR_PTR(-EINVAL); |
365 | 365 | ||
366 | spin_lock(&qdisc_stab_lock); | 366 | spin_lock(&qdisc_stab_lock); |