Skip to contentSkip to conversation

pid: Since we aren't hashing pid 0 don't try

PATCH New Eric W. Biederman 1 participant 1 message Jan 29, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pid: Since we aren't hashing pid 0 don't try

This is a tidbit i missed in my code to stop hashing pid 0.

---

 kernel/pid.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

d634915984d3e2d7ac13aaff1ee0e23406fe0e74

kernel/pid.c +0 -7
index 7c40310..aea6775 100644
@@ -363,11 +363,4 @@ void __init pidmap_init(void)
 	pidmap_array->page = (void *)get_zeroed_page(GFP_KERNEL);
 	set_bit(0, pidmap_array->page);
 	atomic_dec(&pidmap_array->nr_free);
-
-	/*
-	 * Allocate PID 0, and hash it via all PID types:
-	 */
-
-	for (i = 0; i < PIDTYPE_MAX; i++)
-		attach_pid(current, i, 0);
 }
Signature · 1 line
1.1.5.g3480