diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-04-27 19:42:45 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-06-01 18:58:50 +0200 |
commit | edd63a2763bdae0daa4f0a4d4c5d61d1154352a5 (patch) | |
tree | a36c599628574280999af2d1e7bfe2a4a6969164 /arch/sparc | |
parent | TIF_RESTORE_SIGMASK can be set only when TIF_SIGPENDING is set (diff) | |
download | linux-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/sparc')
-rw-r--r-- | arch/sparc/include/asm/thread_info_64.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/thread_info_64.h b/arch/sparc/include/asm/thread_info_64.h index cb9b7a9f5fc1..cfa8c38fb9c8 100644 --- a/arch/sparc/include/asm/thread_info_64.h +++ b/arch/sparc/include/asm/thread_info_64.h @@ -238,7 +238,7 @@ static inline void set_restore_sigmask(void) { struct thread_info *ti = current_thread_info(); ti->status |= TS_RESTORE_SIGMASK; - set_bit(TIF_SIGPENDING, &ti->flags); + WARN_ON(!test_bit(TIF_SIGPENDING, &ti->flags)); } static inline void clear_restore_sigmask(void) { |