net: bridge: mst: Restrict info size queries to bridge ports
authorTobias Waldekranz <tobias@waldekranz.com>
Tue, 22 Mar 2022 13:30:01 +0000 (14:30 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 23 Mar 2022 17:32:44 +0000 (10:32 -0700)
commita911ad18a56aeecf87a098ad1cdc4de91d7f60de
tree62e869b5ff3256e93d77a60aab2fc28c38158bec
parent4a6806cfcbca2cd7bae94b2d4244dab3aaa1b333
net: bridge: mst: Restrict info size queries to bridge ports

Ensure that no bridge masters are ever considered for MST info
dumping. MST states are only supported on bridge ports, not bridge
masters - which br_mst_info_size relies on.

Fixes: 122c29486e1f ("net: bridge: mst: Support setting and reporting MST port states")
Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Link: https://lore.kernel.org/r/20220322133001.16181-1-tobias@waldekranz.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_netlink.c