* [GENETLINK]: Fix adjustment of number of multicast groups
@ 2007-07-24 9:45 Thomas Graf
2007-07-24 22:34 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Graf @ 2007-07-24 9:45 UTC (permalink / raw)
To: davem; +Cc: johannes, netdev
The current calculation of the maximum number of genetlink
multicast groups seems odd, fix it.
Signed-off-by: Thomas Graf <tgraf@suug.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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [GENETLINK]: Fix adjustment of number of multicast groups
2007-07-24 9:45 [GENETLINK]: Fix adjustment of number of multicast groups Thomas Graf
@ 2007-07-24 22:34 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-07-24 22:34 UTC (permalink / raw)
To: tgraf; +Cc: johannes, netdev
From: Thomas Graf <tgraf@suug.ch>
Date: Tue, 24 Jul 2007 11:45:14 +0200
> The current calculation of the maximum number of genetlink
> multicast groups seems odd, fix it.
>
> Signed-off-by: Thomas Graf <tgraf@suug.ch>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-24 22:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-24 9:45 [GENETLINK]: Fix adjustment of number of multicast groups Thomas Graf
2007-07-24 22:34 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).