summaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
authorScott Feldman <sfeldma@gmail.com>2015-08-19 11:29:35 -0700
committerDavid S. Miller <davem@davemloft.net>2015-08-20 14:36:25 -0700
commiteb4cb85180cd3baee4a01fd32e296fc28c2cffc1 (patch)
treedaed4a453a7580c0d386a1d7bef00c7885ba168b /net/bridge
parent4d14a63400dd3e353acb6547831fe465f85864b1 (diff)
downloadop-kernel-dev-eb4cb85180cd3baee4a01fd32e296fc28c2cffc1.zip
op-kernel-dev-eb4cb85180cd3baee4a01fd32e296fc28c2cffc1.tar.gz
bridge: fix netlink max attr size
.maxtype should match .policy. Probably just been getting lucky here because IFLA_BRPORT_MAX > IFLA_BR_MAX. Fixes: 13323516 ("bridge: implement rtnl_link_ops->changelink") Signed-off-by: Scott Feldman <sfeldma@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r--net/bridge/br_netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c
index 0f2408f..dbcb194 100644
--- a/net/bridge/br_netlink.c
+++ b/net/bridge/br_netlink.c
@@ -849,7 +849,7 @@ struct rtnl_link_ops br_link_ops __read_mostly = {
.kind = "bridge",
.priv_size = sizeof(struct net_bridge),
.setup = br_dev_setup,
- .maxtype = IFLA_BRPORT_MAX,
+ .maxtype = IFLA_BR_MAX,
.policy = br_policy,
.validate = br_validate,
.newlink = br_dev_newlink,
OpenPOWER on IntegriCloud