diff mbox

[net-next] bridge: fix netlink max attr size

Message ID 1440008975-41080-1-git-send-email-sfeldma@gmail.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Scott Feldman Aug. 19, 2015, 6:29 p.m. UTC
From: Scott Feldman <sfeldma@gmail.com>

.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>
---
 net/bridge/br_netlink.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Miller Aug. 20, 2015, 9:38 p.m. UTC | #1
From: sfeldma@gmail.com
Date: Wed, 19 Aug 2015 11:29:35 -0700

> From: Scott Feldman <sfeldma@gmail.com>
> 
> .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>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c
index 01401ea..d2c4d66 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,