mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-19 16:14:13 +08:00
[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>
This commit is contained in:
parent
79dc4386ae
commit
2c04ddb707
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user