提交 147c3844 编写于 作者: J Jan Engelhardt 提交者: Patrick McHardy

netfilter: ebtables: fix one wrong return value

Usually -EINVAL is used when checkentry fails (see *_tables).
Signed-off-by: NJan Engelhardt <jengelh@medozas.de>
Signed-off-by: NPatrick McHardy <kaber@trash.net>
上级 f7277f8d
...@@ -699,7 +699,7 @@ ebt_check_entry(struct ebt_entry *e, struct ebt_table_info *newinfo, ...@@ -699,7 +699,7 @@ ebt_check_entry(struct ebt_entry *e, struct ebt_table_info *newinfo,
} else if (t->u.target->checkentry && } else if (t->u.target->checkentry &&
!t->u.target->checkentry(name, e, NULL, t->data, hookmask)) { !t->u.target->checkentry(name, e, NULL, t->data, hookmask)) {
module_put(t->u.target->me); module_put(t->u.target->me);
ret = -EFAULT; ret = -EINVAL;
goto cleanup_watchers; goto cleanup_watchers;
} }
(*cnt)++; (*cnt)++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册