From: Al Viro Date: Tue, 1 May 2012 22:37:16 +0000 (-0400) Subject: ia64: can't reach do_signal() when returning to kernel mode X-Git-Tag: v3.7-rc1~43^2~22 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=cf880248c56495a5e616cde226d7c85972a3218c;p=~emulex%2Finfiniband.git ia64: can't reach do_signal() when returning to kernel mode Signed-off-by: Al Viro --- diff --git a/arch/ia64/kernel/signal.c b/arch/ia64/kernel/signal.c index a199be1fe61..19f89c09d40 100644 --- a/arch/ia64/kernel/signal.c +++ b/arch/ia64/kernel/signal.c @@ -437,14 +437,6 @@ ia64_do_signal (struct sigscratch *scr, long in_syscall) long restart = in_syscall; long errno = scr->pt.r8; - /* - * In the ia64_leave_kernel code path, we want the common case to go fast, which - * is why we may in certain cases get here from kernel mode. Just return without - * doing anything if so. - */ - if (!user_mode(&scr->pt)) - return; - /* * This only loops in the rare cases of handle_signal() failing, in which case we * need to push through a forced SIGSEGV.