projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79dc438
)
[GENETLINK]: Fix adjustment of number of multicast groups
author
Thomas Graf
<tgraf@suug.ch>
Tue, 24 Jul 2007 22:33:51 +0000
(15:33 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 24 Jul 2007 22:33:51 +0000
(15:33 -0700)
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>
net/netlink/genetlink.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netlink/genetlink.c
b/net/netlink/genetlink.c
index 61d65569e2bee365585b4b9d9551e3d1956b7e19..457a2873bb03174a9b7cbb825cb4a3b0807d997d 100644
(file)
--- 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;