Useless checks ?
Correct me if I'm wrong !
In include/linux/sched.h for_each_task is
defined as :
#define for_each_task(p) \
for (p = &init_task ; (p = p->next_task) != &init_task ; )
So p can't be init (pid 1),but in
several files i discoverd a check if p is init.
So please check the files :
file:line
drivers/char/sysrq.c:44
fs/proc/base.c:983
kernel/signal.c:543
kernel/capability.c:109
Gerrit
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:17 EST