diff options
author | Thomas Graf <tgraf@suug.ch> | 2007-07-25 00:33:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-07-25 00:33:51 +0200 |
commit | 2c04ddb707b4d50c314186249f466b6720ee4289 (patch) | |
tree | 49c4f918f41ff16442c20c4a165f41d836bcd8d5 /net/netlink/genetlink.c | |
parent | [GENETLINK]: Fix race in genl_unregister_mc_groups() (diff) | |
download | linux-2c04ddb707b4d50c314186249f466b6720ee4289.tar.xz linux-2c04ddb707b4d50c314186249f466b6720ee4289.zip |
[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@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink/genetlink.c')
-rw-r--r-- | net/netlink/genetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c index 61d65569e2be..457a2873bb03 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c @@ -184,7 +184,7 @@ int genl_register_mc_group(struct genl_family *family, } err = netlink_change_ngroups(genl_sock, - sizeof(unsigned long) * NETLINK_GENERIC); + mc_groups_longs * BITS_PER_LONG); if (err) goto out; |