Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf880248 authored by Al Viro's avatar Al Viro
Browse files

ia64: can't reach do_signal() when returning to kernel mode



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent af445f45
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -437,14 +437,6 @@ ia64_do_signal (struct sigscratch *scr, long in_syscall)
	long restart = in_syscall;
	long restart = in_syscall;
	long errno = scr->pt.r8;
	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
	 * This only loops in the rare cases of handle_signal() failing, in which case we
	 * need to push through a forced SIGSEGV.
	 * need to push through a forced SIGSEGV.