From: Al Viro Date: Sun, 29 Apr 2012 02:42:43 +0000 (-0400) Subject: xtensa: can't get to do_notify_resume() when user_mode(regs) is not true X-Git-Tag: next-20120724~4^2~37 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=aa883ce174393dcb999adcc79bc93bc41d196e18;p=karo-tx-linux.git xtensa: can't get to do_notify_resume() when user_mode(regs) is not true asm glue checks that Signed-off-by: Al Viro --- diff --git a/arch/xtensa/kernel/signal.c b/arch/xtensa/kernel/signal.c index b9f8e5850d3a..6f99e8ed2646 100644 --- a/arch/xtensa/kernel/signal.c +++ b/arch/xtensa/kernel/signal.c @@ -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);