summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-04-22 01:39:54 (GMT)
committerAl Viro <viro@zeniv.linux.org.uk>2012-05-22 03:59:19 (GMT)
commitcf4a0ce45c06f79f800f6d8747618901e3a6a8ad (patch)
tree0f3783c00fd11f3fddd2c1b5fc521fc9082450c7
parent6eef019002e61abdc5e4384e4154d73c9f56d2bc (diff)
downloadlinux-cf4a0ce45c06f79f800f6d8747618901e3a6a8ad.tar.xz
score: don't open-code force_sigsegv()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--arch/score/kernel/signal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/score/kernel/signal.c b/arch/score/kernel/signal.c
index c3fded7..a087ad8 100644
--- a/arch/score/kernel/signal.c
+++ b/arch/score/kernel/signal.c
@@ -236,9 +236,7 @@ static int setup_rt_frame(struct k_sigaction *ka, struct pt_regs *regs,
return 0;
give_sigsegv:
- if (signr == SIGSEGV)
- ka->sa.sa_handler = SIG_DFL;
- force_sig(SIGSEGV, current);
+ force_sigsegv(signr, current);
return -EFAULT;
}