diff options
author | Scott Feldman <sfeldma@gmail.com> | 2015-08-19 11:29:35 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-20 14:36:25 -0700 |
commit | eb4cb85180cd3baee4a01fd32e296fc28c2cffc1 (patch) | |
tree | daed4a453a7580c0d386a1d7bef00c7885ba168b | |
parent | 4d14a63400dd3e353acb6547831fe465f85864b1 (diff) | |
download | op-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>
-rw-r--r-- | net/bridge/br_netlink.c | 2 |
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, |