[PATCH] mips: fixed do_signal in arch/mips/kernel/signal.c

From: Yoichi Yuasa
Date: Tue Sep 14 2004 - 17:40:32 EST


The change of get_signal_to_deliver() is followed.

Signed-off-by: Yoichi Yuasa <yuasa@xxxxxxxxxxxxxx>

diff -urN -X dontdiff vr-orig/arch/mips/kernel/signal.c vr/arch/mips/kernel/signal.c
--- vr-orig/arch/mips/kernel/signal.c Wed Sep 15 00:50:11 2004
+++ vr/arch/mips/kernel/signal.c Wed Sep 15 00:31:06 2004
@@ -480,10 +480,8 @@
struct pt_regs *regs, int signr, sigset_t *set, siginfo_t *info);

static inline void handle_signal(unsigned long sig, siginfo_t *info,
- sigset_t *oldset, struct pt_regs *regs)
+ struct k_sigaction *ka, sigset_t *oldset, struct pt_regs *regs)
{
- struct k_sigaction *ka = &current->sighand->action[sig-1];
-
switch(regs->regs[0]) {
case ERESTART_RESTARTBLOCK:
case ERESTARTNOHAND:
@@ -535,6 +533,7 @@

asmlinkage int do_signal(sigset_t *oldset, struct pt_regs *regs)
{
+ struct k_sigaction ka;
siginfo_t info;
int signr;

@@ -560,9 +559,9 @@
if (!oldset)
oldset = &current->blocked;

- signr = get_signal_to_deliver(&info, regs, NULL);
+ signr = get_signal_to_deliver(&info, &ka, regs, NULL);
if (signr > 0) {
- handle_signal(signr, &info, oldset, regs);
+ handle_signal(signr, &info, &ka, oldset, regs);
return 1;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/