Skip to contentSkip to conversation

mips: don't block signals if we'd failed setting sigframe up

PATCH Applied Al Viro 2 participants 2 messages Sep 28, 2010 – Oct 14, 2010

Subsystems (2)
lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/5 mips: don't block signals if we'd failed setting sigframe up

---
 arch/mips/kernel/signal.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/mips/kernel/signal.c +3 -0
index 2099d5a..b3273ae 100644
@@ -575,6 +575,9 @@ static int handle_signal(unsigned long sig, siginfo_t *info,
 		ret = abi->setup_frame(vdso + abi->signal_return_offset,
 				       ka, regs, sig, oldset);
 
+	if (ret)
+		return ret;
+
 	spin_lock_irq(&current->sighand->siglock);
 	sigorsets(&current->blocked, &current->blocked, &ka->sa.sa_mask);
 	if (!(ka->sa.sa_flags & SA_NODEFER))
Signature · 1 line
1.5.6.5