Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c04ddb7 authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller
Browse files

[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: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 79dc4386
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;