Skip to content

Commit

Permalink
[GENETLINK]: Fix adjustment of number of multicast groups
Browse files Browse the repository at this point in the history
The current calculation of the maximum number of genetlink
multicast groups seems odd, fix it.

Signed-off-by: Thomas Graf <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
tgraf authored and davem330 committed Jul 24, 2007
1 parent 79dc438 commit 2c04ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netlink/genetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2c04ddb

Please sign in to comment.