]> git.baikalelectronics.ru Git - kernel.git/commit
[EBTABLES]: Move more stuff into ebt_verify_pointers().
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Dec 2006 03:26:35 +0000 (19:26 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:31:59 +0000 (21:31 -0800)
commitea21b0728a8afc894a53e8574a11fafe6ff8bb9b
tree09387ab5449d3013196df7e269ed2f1fd757f8ca
parent4fb5b15c0690272bbfd3b0bbd34f3df5a6c3fb8a
[EBTABLES]: Move more stuff into ebt_verify_pointers().

Take intialization of ->hook_entry[...], ->entries_size and ->nentries
over there, pull the check for empty chains into the end of that sucker.

Now it's self-contained, so we can move it up in the very beginning of
translate_table() *and* we can rely on ->hook_entry[] being properly
transliterated after it.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/netfilter/ebtables.c