netfilter: ebtables: fix one wrong return value
Usually -EINVAL is used when checkentry fails (see *_tables). Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
f7277f8d3a
commit
147c3844ad
1 changed files with 1 additions and 1 deletions
|
@ -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)++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue