xtensa: can't get to do_notify_resume() when user_mode(regs) is not true
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 29 Apr 2012 02:42:43 +0000 (22:42 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 1 Oct 2012 13:58:09 +0000 (09:58 -0400)
asm glue checks that

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/xtensa/kernel/signal.c

index efe4e854b3cdd06808eec1bcd3fe8fa70b07ed96..0cbe67a2248a8b2675eb405954d6113d1c3e4659 100644 (file)
@@ -527,9 +527,6 @@ static void do_signal(struct pt_regs *regs)
 
 void do_notify_resume(struct pt_regs *regs)
 {
-       if (!user_mode(regs))
-               return;
-
        if (test_thread_flag(TIF_SIGPENDING))
                do_signal(regs);