projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94a80d6
)
net/bridge/netfilter/ebtables.c: use available error handling code
author
Julia Lawall
<julia@diku.dk>
Thu, 11 Aug 2011 01:59:38 +0000
(
01:59
+0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 11 Aug 2011 12:52:57 +0000
(
05:52
-0700)
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>
net/bridge/netfilter/ebtables.c
patch
|
blob
|
history
diff --git
a/net/bridge/netfilter/ebtables.c
b/net/bridge/netfilter/ebtables.c
index 2b5ca1a0054da4aec5f6a17064e1040c4a107dda..5864cc49136993d9de12f4c0f9110ab2dbcf1025 100644
(file)
--- 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;