diff options
-rw-r--r-- | net/sched/sch_dsmark.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sched/sch_dsmark.c b/net/sched/sch_dsmark.c index bad1cbe59a56..05605b30bef3 100644 --- a/net/sched/sch_dsmark.c +++ b/net/sched/sch_dsmark.c | |||
@@ -361,6 +361,8 @@ static int dsmark_init(struct Qdisc *sch, struct nlattr *opt, | |||
361 | goto errout; | 361 | goto errout; |
362 | 362 | ||
363 | err = -EINVAL; | 363 | err = -EINVAL; |
364 | if (!tb[TCA_DSMARK_INDICES]) | ||
365 | goto errout; | ||
364 | indices = nla_get_u16(tb[TCA_DSMARK_INDICES]); | 366 | indices = nla_get_u16(tb[TCA_DSMARK_INDICES]); |
365 | 367 | ||
366 | if (hweight32(indices) != 1) | 368 | if (hweight32(indices) != 1) |