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

Commit db2f24dc authored by Richard Weinberger's avatar Richard Weinberger
Browse files

um: Fix get_signal() usage



If get_signal() returns us a signal to post
we must not call it again, otherwise the already
posted signal will be overridden.
Before commit a610d6e6 this was the case as we stopped
the while after a successful handle_signal().

Cc: <stable@vger.kernel.org> # 3.10-
Fixes: a610d6e6 ("pull clearing RESTORE_SIGMASK into block_sigmask()")
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 527e9316
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -69,7 +69,7 @@ void do_signal(struct pt_regs *regs)
	struct ksignal ksig;
	struct ksignal ksig;
	int handled_sig = 0;
	int handled_sig = 0;


	while (get_signal(&ksig)) {
	if (get_signal(&ksig)) {
		handled_sig = 1;
		handled_sig = 1;
		/* Whee!  Actually deliver the signal.  */
		/* Whee!  Actually deliver the signal.  */
		handle_signal(&ksig, regs);
		handle_signal(&ksig, regs);