Commit ef6bb926 authored by Anton Blanchard's avatar Anton Blanchard Committed by Linus Torvalds

[PATCH] Allocate correct amount of memory for pid hash

We are now allocating twice as much memory as required.
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 819155f3
......@@ -278,7 +278,7 @@ void __init pidhash_init(void)
for (i = 0; i < PIDTYPE_MAX; i++) {
pid_hash[i] = alloc_bootmem(pidhash_size *
sizeof(struct list_head));
sizeof(*(pid_hash[i])));
if (!pid_hash[i])
panic("Could not alloc pidhash!\n");
for (j = 0; j < pidhash_size; j++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment