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

Commit c8bfa1fd authored by Ryusuke Sakato's avatar Ryusuke Sakato Committed by Paul Mundt
Browse files

sh: Fix sigmask trampling in signal delivery.



There was a missing return in do_signal() that caused the saved
sigmask to be written back after having successfully delivered
the signal.

Signed-off-by: default avatarRyusuke Sakato <sakato@hsdv.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 9432f968
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -589,6 +589,8 @@ static void do_signal(struct pt_regs *regs, unsigned int save_r0)
			if (test_thread_flag(TIF_RESTORE_SIGMASK))
				clear_thread_flag(TIF_RESTORE_SIGMASK);
		}

		return;
	}

 no_signal: