Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5189054d authored by Julia Lawall's avatar Julia Lawall Committed by David S. Miller
Browse files

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: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 94a80d63
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;