bridge: vlan: use br_vlan_(get|put)_master to deal with refcounts
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fri, 2 Oct 2015 13:05:11 +0000 (15:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Oct 2015 23:43:48 +0000 (16:43 -0700)
commitf8ed289fab843fbc9251aa2f5c3d416f09b5fc7e
treedb83a19d5ba3be7767076070dc8ee6b6650fab4a
parent586c2b573ee4c2c4ba03e16318a16614ebf876f8
bridge: vlan: use br_vlan_(get|put)_master to deal with refcounts

Introduce br_vlan_(get|put)_master which take a reference (or create the
master vlan first if it didn't exist) and drop a reference respectively.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_vlan.c