bridge: Use the correct bit length for bitmap functions in the VLAN code
authorToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Tue, 20 Aug 2013 08:10:18 +0000 (17:10 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Sep 2013 13:54:55 +0000 (06:54 -0700)
commit9f0bd377e1210501cd11eef80159e5d7f6160fef
tree550d471053e64487a2434ef8b56c4c2c770fe688
parentfc26e4cf6f6be400ea7b5442982c58e76b6beda4
bridge: Use the correct bit length for bitmap functions in the VLAN code

[ Upstream commit ef40b7ef181b7b1a24df2ef2d1ef84956bffa635 ]

The VLAN code needs to know the length of the per-port VLAN bitmap to
perform its most basic operations (retrieving VLAN informations, removing
VLANs, forwarding database manipulation, etc). Unfortunately, in the
current implementation we are using a macro that indicates the bitmap
size in longs in places where the size in bits is expected, which in
some cases can cause what appear to be random failures.
Use the correct macro.

Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bridge/br_fdb.c
net/bridge/br_netlink.c
net/bridge/br_vlan.c