diff options
author | Julia Lawall <julia@diku.dk> | 2011-08-11 03:59:38 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-11 14:52:57 +0200 |
commit | 5189054dd7ff18576446edc270b6b69fa8285336 (patch) | |
tree | 6b6e8d9497e3fa636f377a09329f446067da447c /net | |
parent | net/netlabel/netlabel_kapi.c: add missing cleanup code (diff) | |
download | linux-5189054dd7ff18576446edc270b6b69fa8285336.tar.xz 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.c | 3 |
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; |