summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2011-08-11 01:59:38 +0000
committerDavid S. Miller <davem@davemloft.net>2011-08-11 05:52:57 -0700
commit5189054dd7ff18576446edc270b6b69fa8285336 (patch)
tree6b6e8d9497e3fa636f377a09329f446067da447c /net
parent94a80d63b245c66745c1d72b8154f67b597e3b89 (diff)
downloadblackbird-op-linux-5189054dd7ff18576446edc270b6b69fa8285336.tar.gz
blackbird-op-linux-5189054dd7ff18576446edc270b6b69fa8285336.zip
net/bridge/netfilter/ebtables.c: use available error handling code
Free the locally allocated table and newinfo as done in adjacent error handling code. Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/bridge/netfilter/ebtables.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c
index 2b5ca1a0054d..5864cc491369 100644
--- a/net/bridge/netfilter/ebtables.c
+++ b/net/bridge/netfilter/ebtables.c
@@ -1198,7 +1198,8 @@ ebt_register_table(struct net *net, const struct ebt_table *input_table)
if (table->check && table->check(newinfo, table->valid_hooks)) {
BUGPRINT("The table doesn't like its own initial data, lol\n");
- return ERR_PTR(-EINVAL);
+ ret = -EINVAL;
+ goto free_chainstack;
}
table->private = newinfo;
OpenPOWER on IntegriCloud