diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-04-22 03:35:56 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-22 05:59:19 +0200 |
commit | 6eef019002e61abdc5e4384e4154d73c9f56d2bc (patch) | |
tree | c1987f38e728d4c8759664f739a98adbb6513782 /arch/cris/arch-v32/kernel | |
parent | blackfin: don't open-code force_sigsegv() (diff) | |
download | linux-6eef019002e61abdc5e4384e4154d73c9f56d2bc.tar.xz linux-6eef019002e61abdc5e4384e4154d73c9f56d2bc.zip |
cris: don't open-code force_sigsegv()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/cris/arch-v32/kernel')
-rw-r--r-- | arch/cris/arch-v32/kernel/signal.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/cris/arch-v32/kernel/signal.c b/arch/cris/arch-v32/kernel/signal.c index 55905782a41b..a45efc7df748 100644 --- a/arch/cris/arch-v32/kernel/signal.c +++ b/arch/cris/arch-v32/kernel/signal.c @@ -345,10 +345,7 @@ setup_frame(int sig, struct k_sigaction *ka, sigset_t *set, return 0; give_sigsegv: - if (sig == SIGSEGV) - ka->sa.sa_handler = SIG_DFL; - - force_sig(SIGSEGV, current); + force_sigsegv(sig, current); return -EFAULT; } @@ -432,10 +429,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; } |