summaryrefslogtreecommitdiff
path: root/arch/blackfin/kernel/signal.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-04-21 21:32:46 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-05-21 23:58:33 -0400
commit5d71c55bdb020561a9d44c8453ca2a3ca524ea35 (patch)
treecebbbcbd96a2e1b1f2930dc46baceb6636591791 /arch/blackfin/kernel/signal.c
parentfe49c1cebf054d5c797ecd6b91d5bf96d4295fe4 (diff)
blackfin: don't open-code force_sigsegv()
... especially since we don't have the right k_sigaction here, so resetting sa_handler won't work. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/blackfin/kernel/signal.c')
-rw-r--r--arch/blackfin/kernel/signal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/blackfin/kernel/signal.c b/arch/blackfin/kernel/signal.c
index 05ece020f8a3..e5bbc1a5edc2 100644
--- a/arch/blackfin/kernel/signal.c
+++ b/arch/blackfin/kernel/signal.c
@@ -210,9 +210,7 @@ setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t * info,
return 0;
give_sigsegv:
- if (sig == SIGSEGV)
- ka->sa.sa_handler = SIG_DFL;
- force_sig(SIGSEGV, current);
+ force_sigsegv(sig, current);
return -EFAULT;
}