From: Pavel Emelyanov Date: Thu, 29 Nov 2007 12:58:58 +0000 (+1100) Subject: [BRIDGE]: Properly dereference the br_should_route_hook X-Git-Tag: v2.6.24-rc4~8^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82de382ce8e1c7645984616728dc7aaa057821e4;p=pandora-kernel.git [BRIDGE]: Properly dereference the br_should_route_hook This hook is protected with the RCU, so simple if (br_should_route_hook) br_should_route_hook(...) is not enough on some architectures. Use the rcu_dereference/rcu_assign_pointer in this case. Fixed Stephen's comment concerning using the typeof(). Signed-off-by: Pavel Emelyanov Signed-off-by: Herbert Xu --- Reading git-diff-tree failed