From: Jan Engelhardt Date: Wed, 8 Oct 2008 09:35:16 +0000 (+0200) Subject: netfilter: ebtables: fix one wrong return value X-Git-Tag: v2.6.28-rc1~717^2~109^2~16 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=147c3844ad381b58715a6ee2ea697594e3c06284;p=linux-2.6-omap-h63xx.git netfilter: ebtables: fix one wrong return value Usually -EINVAL is used when checkentry fails (see *_tables). Signed-off-by: Jan Engelhardt Signed-off-by: Patrick McHardy --- diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c index b489ed262fa..7d8ead52d25 100644 --- a/net/bridge/netfilter/ebtables.c +++ b/net/bridge/netfilter/ebtables.c @@ -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)++;