Skip to content

Commit db2f24d

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 a610d6e this was the case as we stopped the while after a successful handle_signal(). Cc: <stable@vger.kernel.org> # 3.10- Fixes: a610d6e ("pull clearing RESTORE_SIGMASK into block_sigmask()") Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent 527e931 commit db2f24d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/um/kernel/signal.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void do_signal(struct pt_regs *regs)
6969
struct ksignal ksig;
7070
int handled_sig = 0;
7171

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

0 commit comments

Comments
 (0)