Skip to contentSkip to conversation

frv: avoid infinite loop of SIGSEGV delivery

PATCH New Al Viro 1 participant 1 message Sep 18, 2010 Generic include/asm header files

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 3/5 frv: avoid infinite loop of SIGSEGV delivery

force_sigsegv() exists for a good reason...

---
 arch/frv/kernel/signal.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/frv/kernel/signal.c +2 -2
index d06226b..fa40d54 100644
@@ -329,7 +329,7 @@ static int setup_frame(int sig, struct k_sigaction *ka, sigset_t *set)
 	return 0;
 
 give_sigsegv:
-	force_sig(SIGSEGV, current);
+	force_sigsegv(sig, current);
 	return -EFAULT;
 
 } /* end setup_frame() */
@@ -431,7 +431,7 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
 	return 0;
 
 give_sigsegv:
-	force_sig(SIGSEGV, current);
+	force_sigsegv(sig, current);
 	return -EFAULT;
 
 } /* end setup_rt_frame() */
Signature · 1 line
1.5.6.5