Commit db2f24dc authored by Richard Weinberger's avatar Richard Weinberger

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
...@@ -69,7 +69,7 @@ void do_signal(struct pt_regs *regs) ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment