* [PATCH net-next] bridge: fix netlink max attr size
@ 2015-08-19 18:29 sfeldma
2015-08-20 21:38 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: sfeldma @ 2015-08-19 18:29 UTC (permalink / raw)
To: netdev; +Cc: jiri
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(-)
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,
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] bridge: fix netlink max attr size
2015-08-19 18:29 [PATCH net-next] bridge: fix netlink max attr size sfeldma
@ 2015-08-20 21:38 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-08-20 21:38 UTC (permalink / raw)
To: sfeldma; +Cc: netdev, jiri
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-20 21:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-19 18:29 [PATCH net-next] bridge: fix netlink max attr size sfeldma
2015-08-20 21:38 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.