bridge: mdb: fix vlan_enabled access when vlans are not configured
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Mon, 3 Aug 2015 23:19:58 +0000 (01:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2015 23:20:51 +0000 (16:20 -0700)
commit58da018053531b9cb91423a64f2a762ef0fe7456
tree5c3535d041305b5e6395765d2769b58679ce05f2
parenta5c90b29e5ccdb90922b808fd4831cfbaa63006c
bridge: mdb: fix vlan_enabled access when vlans are not configured

Instead of trying to access br->vlan_enabled directly use the provided
helper br_vlan_enabled().

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