Skip to content

Commit

Permalink
um: Fix get_signal() usage
Browse files Browse the repository at this point in the history
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: <[email protected]> # 3.10-
Fixes: a610d6e ("pull clearing RESTORE_SIGMASK into block_sigmask()")
Signed-off-by: Richard Weinberger <[email protected]>
  • Loading branch information
richardweinberger committed Dec 8, 2015
1 parent 527e931 commit db2f24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/um/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void do_signal(struct pt_regs *regs)
struct ksignal ksig;
int handled_sig = 0;

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

0 comments on commit db2f24d

Please sign in to comment.