summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/thread_info.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-04-27 19:42:45 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2012-06-01 18:58:50 +0200
commitedd63a2763bdae0daa4f0a4d4c5d61d1154352a5 (patch)
treea36c599628574280999af2d1e7bfe2a4a6969164 /arch/powerpc/include/asm/thread_info.h
parentTIF_RESTORE_SIGMASK can be set only when TIF_SIGPENDING is set (diff)
downloadlinux-edd63a2763bdae0daa4f0a4d4c5d61d1154352a5.tar.xz
linux-edd63a2763bdae0daa4f0a4d4c5d61d1154352a5.zip
set_restore_sigmask() is never called without SIGPENDING (and never should be)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/powerpc/include/asm/thread_info.h')
-rw-r--r--arch/powerpc/include/asm/thread_info.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/thread_info.h b/arch/powerpc/include/asm/thread_info.h
index 85d50a93a92f..68831e9cf82f 100644
--- a/arch/powerpc/include/asm/thread_info.h
+++ b/arch/powerpc/include/asm/thread_info.h
@@ -140,7 +140,7 @@ static inline void set_restore_sigmask(void)
{
struct thread_info *ti = current_thread_info();
ti->local_flags |= _TLF_RESTORE_SIGMASK;
- set_bit(TIF_SIGPENDING, &ti->flags);
+ WARN_ON(!test_bit(TIF_SIGPENDING, &ti->flags));
}
static inline void clear_restore_sigmask(void)
{