From: Scott Feldman Date: Wed, 19 Aug 2015 18:29:35 +0000 (-0700) Subject: bridge: fix netlink max attr size X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eb4cb85180cd3baee4a01fd32e296fc28c2cffc1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index 0f2408f6cdfe..dbcb1949ea58 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,