diff options
author | 2008-07-25 01:47:26 -0700 | |
---|---|---|
committer | 2008-07-25 10:53:38 -0700 | |
commit | 4b7a1304267bff68260ae861784b27130e805be3 (patch) | |
tree | 65065cc702a9d73fba4a85d0bdab5ed326a5b479 /include/linux/init_task.h | |
parent | cpuset: two minor code-cleanups (diff) | |
download | linux-dev-4b7a1304267bff68260ae861784b27130e805be3.tar.xz linux-dev-4b7a1304267bff68260ae861784b27130e805be3.zip |
posix timers: timer_delete: remove the bogus "->it_process != NULL" check
sys_timer_delete() and itimer_delete() check "timer->it_process != NULL",
this looks completely bogus. ->it_process == NULL means that this timer
is already under destruction or it is not fully initialized, this must not
happen.
sys_timer_delete: the timer is locked, and lock_timer() can't succeed
if ->it_process == NULL.
itimer_delete: it is called by exit_itimers() when there are no other
threads which can play with signal_struct->posix_timers.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: Roland McGrath <roland@redhat.com>
Cc: john stultz <johnstul@us.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/init_task.h')
0 files changed, 0 insertions, 0 deletions