Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 147c3844 authored by Jan Engelhardt's avatar Jan Engelhardt Committed by Patrick McHardy
Browse files

netfilter: ebtables: fix one wrong return value



Usually -EINVAL is used when checkentry fails (see *_tables).

Signed-off-by: default avatarJan Engelhardt <jengelh@medozas.de>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent f7277f8d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -699,7 +699,7 @@ ebt_check_entry(struct ebt_entry *e, struct ebt_table_info *newinfo,
	} else if (t->u.target->checkentry &&
	    !t->u.target->checkentry(name, e, NULL, t->data, hookmask)) {
		module_put(t->u.target->me);
		ret = -EFAULT;
		ret = -EINVAL;
		goto cleanup_watchers;
	}
	(*cnt)++;