diff --git a/net/sched/act_simple.c b/net/sched/act_simple.c index fbde461b716cc90dc8de261870078ed7c42b8703..64b2d136c78e9ac1cf370e3289bed361de9995ff 100644 --- a/net/sched/act_simple.c +++ b/net/sched/act_simple.c @@ -115,7 +115,7 @@ static int tcf_simp_init(struct nlattr *nla, struct nlattr *est, return -EINVAL; datalen = nla_len(tb[TCA_DEF_DATA]); - if (datalen <= 0) + if (datalen == 0) return -EINVAL; pc = tcf_hash_check(parm->index, a, bind, &simp_hash_info);