]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: Don't put partly initialized fdb into hash
authorPavel Emelyanov <xemul@openvz.org>
Fri, 4 Feb 2011 21:02:36 +0000 (13:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Feb 2011 21:02:36 +0000 (13:02 -0800)
commitf232e01c0f9d990415b2f4f5b950000b70a527e1
treec4e0fa76daa3c8f37312d4de6a3fd587545e920e
parentba666bde5f347a55f61dab6f2cf54712b7735388
bridge: Don't put partly initialized fdb into hash

The fdb_create() puts a new fdb into hash with only addr set. This is
not good, since there are callers, that search the hash w/o the lock
and access all the other its fields.

Applies to current netdev tree.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_fdb.c