set_restore_sigmask() is never called without SIGPENDING (and never should be)

Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2012-04-27 13:42:45 -04:00
commit edd63a2763
8 changed files with 9 additions and 8 deletions

View file

@ -169,7 +169,7 @@ static inline void set_restore_sigmask(void)
{
struct thread_info *ti = current_thread_info();
ti->status |= TS_RESTORE_SIGMASK;
set_bit(TIF_SIGPENDING, (unsigned long *)&ti->flags);
WARN_ON(!test_bit(TIF_SIGPENDING, (unsigned long *)&ti->flags));
}
#define TI_FLAG_FAULT_CODE_SHIFT 24