]> git.baikalelectronics.ru Git - kernel.git/commit
[NEIGH]: Ensure that pneigh_lookup is protected with RTNL
authorPavel Emelyanov <xemul@openvz.org>
Mon, 15 Oct 2007 19:54:15 +0000 (12:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Oct 2007 19:54:15 +0000 (12:54 -0700)
commitc4394bb5e46e12a1defaef9e3ce70d1adb4579c3
tree06aa4ff04bb1acdb64c29fc4b28a5cf91b1d57b8
parent212e3b002289e78157328b5bf51e2478c0957e8e
[NEIGH]: Ensure that pneigh_lookup is protected with RTNL

The pnigh_lookup is used to lookup proxy entries and to
create them in case lookup failed.

However, the "creation" code does not perform the re-lookup
after GFP_KERNEL allocation. This is done because the code
is expected to be protected with the RTNL lock, so add the
assertion (mainly to address future questions from new network
developers like me :) ).

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