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

Commit 7dfae720 authored by Al Viro's avatar Al Viro
Browse files

arm: if there's no handler we need to restore sigmask, syscall or no syscall



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 84849b3e
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -715,15 +715,13 @@ static void do_signal(struct pt_regs *regs, int syscall)
#endif
			}
		}
	}

	/* If there's no signal to deliver, we just put the saved sigmask
	 * back.
	 */
		if (test_thread_flag(TIF_RESTORE_SIGMASK)) {
			clear_thread_flag(TIF_RESTORE_SIGMASK);
			sigprocmask(SIG_SETMASK, &current->saved_sigmask, NULL);
		}
	}
	if (test_and_clear_thread_flag(TIF_RESTORE_SIGMASK))
		set_current_blocked(&current->saved_sigmask);
}

asmlinkage void