summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-04-22 03:32:46 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2012-05-22 05:58:33 +0200
commit5d71c55bdb020561a9d44c8453ca2a3ca524ea35 (patch)
treecebbbcbd96a2e1b1f2930dc46baceb6636591791 /arch
parentavr32: need to clear RESTORE_SIGMASK on successful signal delivery (diff)
downloadlinux-5d71c55bdb020561a9d44c8453ca2a3ca524ea35.tar.xz
linux-5d71c55bdb020561a9d44c8453ca2a3ca524ea35.zip
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')
-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;
}