summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2008-10-08 11:35:16 +0200
committerPatrick McHardy <kaber@trash.net>2008-10-08 11:35:16 +0200
commit147c3844ad381b58715a6ee2ea697594e3c06284 (patch)
treec79d3d3041393230ff1c470d5863996567a98d4d
parentf7277f8d3aa4d3f99a9bdb48b27a2344a637a4b2 (diff)
downloadblackbird-obmc-linux-147c3844ad381b58715a6ee2ea697594e3c06284.tar.gz
blackbird-obmc-linux-147c3844ad381b58715a6ee2ea697594e3c06284.zip
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>
-rw-r--r--net/bridge/netfilter/ebtables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c
index b489ed262fa5..7d8ead52d25f 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)++;
OpenPOWER on IntegriCloud