bridge: vlan: Use rcu_dereference instead of rtnl_dereference
authorIdo Schimmel <idosch@mellanox.com>
Sun, 1 Nov 2015 16:31:45 +0000 (18:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Nov 2015 21:27:39 +0000 (16:27 -0500)
commiteca1e006cf6f6f66a1a90c055a8a6d393475c3f9
tree5cec1e49982edac99b855872069ce06169e98b25
parentb9b377136eb83cace5667cb6e8d53da771df6faa
bridge: vlan: Use rcu_dereference instead of rtnl_dereference

br_should_learn() is protected by RCU and not by RTNL, so use correct
flavor of nbp_vlan_group().

Fixes: 907b1e6e83ed ("bridge: vlan: use proper rcu for the vlgrp
member")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_vlan.c