lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 25 Apr 2007 12:08:58 +0530 From: Shani Moideen <shani.moideen@...ro.com> To: torvalds@...ux-foundation.org Cc: linux-kernel@...r.kernel.org, kernel-janitors@...ts.osdl.org Subject: [PATCH]:Replacing current->state with set_current_state in kernel/signal.c Hi, Replacing current->state with set_current_state in kernel/signal.c thanks. Signed-off-by: Shani Moideen <shani.moideen@...ro.com> ---- diff --git a/kernel/signal.c b/kernel/signal.c index 3670225..44e2cf3 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -2596,7 +2596,7 @@ sys_signal(int sig, __sighandler_t handler) asmlinkage long sys_pause(void) { - current->state = TASK_INTERRUPTIBLE; + set_current_state(TASK_INTERRUPTIBLE); schedule(); return -ERESTARTNOHAND; } @@ -2622,7 +2622,7 @@ asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset, size_t sigsetsize) recalc_sigpending(); spin_unlock_irq(¤t->sighand->siglock); - current->state = TASK_INTERRUPTIBLE; + set_current_state(TASK_INTERRUPTIBLE); schedule(); set_thread_flag(TIF_RESTORE_SIGMASK); return -ERESTARTNOHAND; -- Shani - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists