diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-04-21 21:35:56 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-21 23:59:19 -0400 |
commit | 6eef019002e61abdc5e4384e4154d73c9f56d2bc (patch) | |
tree | c1987f38e728d4c8759664f739a98adbb6513782 /arch/cris | |
parent | 5d71c55bdb020561a9d44c8453ca2a3ca524ea35 (diff) |
cris: don't open-code force_sigsegv()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/cris')
-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, | |||
345 | return 0; | 345 | return 0; |
346 | 346 | ||
347 | give_sigsegv: | 347 | give_sigsegv: |
348 | if (sig == SIGSEGV) | 348 | force_sigsegv(sig, current); |
349 | ka->sa.sa_handler = SIG_DFL; | ||
350 | |||
351 | force_sig(SIGSEGV, current); | ||
352 | return -EFAULT; | 349 | return -EFAULT; |
353 | } | 350 | } |
354 | 351 | ||
@@ -432,10 +429,7 @@ setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
432 | return 0; | 429 | return 0; |
433 | 430 | ||
434 | give_sigsegv: | 431 | give_sigsegv: |
435 | if (sig == SIGSEGV) | 432 | force_sigsegv(sig, current); |
436 | ka->sa.sa_handler = SIG_DFL; | ||
437 | |||
438 | force_sig(SIGSEGV, current); | ||
439 | return -EFAULT; | 433 | return -EFAULT; |
440 | } | 434 | } |
441 | 435 | ||