diff options
author | Julia Lawall <julia@diku.dk> | 2011-08-11 01:59:38 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-11 05:52:57 -0700 |
commit | 5189054dd7ff18576446edc270b6b69fa8285336 (patch) | |
tree | 6b6e8d9497e3fa636f377a09329f446067da447c /net/bridge/netfilter | |
parent | 94a80d63b245c66745c1d72b8154f67b597e3b89 (diff) |
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/bridge/netfilter')
-rw-r--r-- | net/bridge/netfilter/ebtables.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c index 2b5ca1a0054..5864cc49136 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; |