[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070724094514.GD9285@postel.suug.ch>
Date: Tue, 24 Jul 2007 11:45:14 +0200
From: Thomas Graf <tgraf@...g.ch>
To: davem@...emloft.net
Cc: johannes@...solutions.net, netdev@...r.kernel.org
Subject: [GENETLINK]: Fix adjustment of number of multicast groups
The current calculation of the maximum number of genetlink
multicast groups seems odd, fix it.
Signed-off-by: Thomas Graf <tgraf@...g.ch>
Index: net-2.6/net/netlink/genetlink.c
===================================================================
--- net-2.6.orig/net/netlink/genetlink.c 2007-07-23 22:03:02.000000000 +0200
+++ net-2.6/net/netlink/genetlink.c 2007-07-23 22:05:12.000000000 +0200
@@ -184,7 +184,7 @@ int genl_register_mc_group(struct genl_f
}
err = netlink_change_ngroups(genl_sock,
- sizeof(unsigned long) * NETLINK_GENERIC);
+ mc_groups_longs * BITS_PER_LONG);
if (err)
goto out;
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists