summaryrefslogtreecommitdiffstats
path: root/kernel/linux2.5/net/bridge
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2003-01-19 10:15:41 +0000
committerBart De Schuymer <bdschuym@pandora.be>2003-01-19 10:15:41 +0000
commitbfb2c6a07b4eb7b1e40a1d7b5d628b25664d5566 (patch)
tree1205922b71e796d354221778cc325e7e4496a950 /kernel/linux2.5/net/bridge
parente837996a34c06c0475f5a5d8e50f5f396f97a914 (diff)
use -EAGAIN instead of -EINVAL
Diffstat (limited to 'kernel/linux2.5/net/bridge')
-rw-r--r--kernel/linux2.5/net/bridge/netfilter/ebtables.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/linux2.5/net/bridge/netfilter/ebtables.c b/kernel/linux2.5/net/bridge/netfilter/ebtables.c
index 9b2bbe5..89e27c5 100644
--- a/kernel/linux2.5/net/bridge/netfilter/ebtables.c
+++ b/kernel/linux2.5/net/bridge/netfilter/ebtables.c
@@ -365,7 +365,7 @@ ebt_check_match(struct ebt_entry_match *m, struct ebt_entry *e,
m->u.match = match;
if (!try_module_get(match->me)) {
up(&ebt_mutex);
- return -EINVAL;
+ return -EAGAIN;
}
up(&ebt_mutex);
if (match->check &&
@@ -394,7 +394,7 @@ ebt_check_watcher(struct ebt_entry_watcher *w, struct ebt_entry *e,
w->u.watcher = watcher;
if (!try_module_get(watcher->me)) {
up(&ebt_mutex);
- return -EINVAL;
+ return -EAGAIN;
}
up(&ebt_mutex);
if (watcher->check &&
@@ -634,6 +634,7 @@ ebt_check_entry(struct ebt_entry *e, struct ebt_table_info *newinfo,
goto cleanup_watchers;
if (!try_module_get(target->me)) {
up(&ebt_mutex);
+ ret = -EAGAIN;
goto cleanup_watchers;
}
up(&ebt_mutex);