From: Thomas Graf Date: Tue, 24 Jul 2007 22:33:51 +0000 (-0700) Subject: [GENETLINK]: Fix adjustment of number of multicast groups X-Git-Tag: MMI-PSA29.97-13-9~41169^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2c04ddb707b4d50c314186249f466b6720ee4289;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [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 Signed-off-by: David S. Miller --- 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;