aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/sched/act_simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_simple.c b/net/sched/act_simple.c
index fbde461b716c..64b2d136c78e 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,
115 return -EINVAL; 115 return -EINVAL;
116 116
117 datalen = nla_len(tb[TCA_DEF_DATA]); 117 datalen = nla_len(tb[TCA_DEF_DATA]);
118 if (datalen <= 0) 118 if (datalen == 0)
119 return -EINVAL; 119 return -EINVAL;
120 120
121 pc = tcf_hash_check(parm->index, a, bind, &simp_hash_info); 121 pc = tcf_hash_check(parm->index, a, bind, &simp_hash_info);