projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7277f8
)
netfilter: ebtables: fix one wrong return value
author
Jan Engelhardt
<jengelh@medozas.de>
Wed, 8 Oct 2008 09:35:16 +0000
(11:35 +0200)
committer
Patrick McHardy
<kaber@trash.net>
Wed, 8 Oct 2008 09:35:16 +0000
(11:35 +0200)
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>
net/bridge/netfilter/ebtables.c
patch
|
blob
|
history
diff --git
a/net/bridge/netfilter/ebtables.c
b/net/bridge/netfilter/ebtables.c
index
b489ed2
..
7d8ead5
100644
(file)
--- 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 = -E
FAULT
;
+ ret = -E
INVAL
;
goto cleanup_watchers;
}
(*cnt)++;