bridge: use br_port_get_rtnl within rtnl lock
authorHong Zhiguo <zhiguohong@tencent.com>
Sat, 14 Sep 2013 14:42:27 +0000 (22:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Sep 2013 02:03:33 +0000 (22:03 -0400)
commit1fb1754a8c70d69ab480763c423e0a74369c4a67
tree84ccb1544806928d3bfa10beff69027b3153f178
parent3274f687520fd472b80ac386aa0aa24c657ae330
bridge: use br_port_get_rtnl within rtnl lock

current br_port_get_rcu is problematic in bridging path
(NULL deref). Change these calls in netlink path first.

Signed-off-by: Hong Zhiguo <zhiguohong@tencent.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink.c
net/bridge/br_private.h