bridge: fix netlink max attr size
authorScott Feldman <sfeldma@gmail.com>
Wed, 19 Aug 2015 18:29:35 +0000 (11:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2015 21:36:25 +0000 (14:36 -0700)
.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>
net/bridge/br_netlink.c

index 0f2408f6cdfe4336efdc281d7317c01d766b9e38..dbcb1949ea58c2a4ca26135134367b90eb55f8e7 100644 (file)
@@ -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,