]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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>
Fri, 1 Jun 2012 22:03:11 +0000 (18:03 -0400)
asm glue checks that

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

index b9f8e5850d3a4e1c9bc1dbe3ff6ee0b7dbc47cc9..6f99e8ed2646b9b157cdc90216764b83f1519311 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);