]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Allocate correct amount of memory for pid hash
authorAnton Blanchard <anton@samba.org>
Tue, 14 Sep 2004 00:46:50 +0000 (17:46 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 14 Sep 2004 00:46:50 +0000 (17:46 -0700)
We are now allocating twice as much memory as required.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/pid.c

index 57527f0cda5ebd946f49e5a60492f944d0a6737e..83008f812f4974031178f804d847e55c083ad21e 100644 (file)
@@ -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++)