summaryrefslogtreecommitdiff
path: root/kernel/signal.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-11-05 13:09:56 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-11-29 00:01:25 -0500
commit4aaefee589f97bb30062bbeeb793bbbf7107a9a7 (patch)
treeaa33867f356565bce42755ab93870f4375c80adf /kernel/signal.c
parent94eb22d5056b5eca10c587bf064e0e6db0ae6161 (diff)
downloadlwn-4aaefee589f97bb30062bbeeb793bbbf7107a9a7.tar.gz
lwn-4aaefee589f97bb30062bbeeb793bbbf7107a9a7.zip
print_fatal_signal(): get rid of pt_regs argument
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/signal.c')
-rw-r--r--kernel/signal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 421d5b6bcdbc..2e3b5d572808 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -1159,8 +1159,9 @@ static int send_signal(int sig, struct siginfo *info, struct task_struct *t,
return __send_signal(sig, info, t, group, from_ancestor_ns);
}
-static void print_fatal_signal(struct pt_regs *regs, int signr)
+static void print_fatal_signal(int signr)
{
+ struct pt_regs *regs = signal_pt_regs();
printk("%s/%d: potentially unexpected fatal signal %d.\n",
current->comm, task_pid_nr(current), signr);
@@ -2349,7 +2350,7 @@ relock:
if (sig_kernel_coredump(signr)) {
if (print_fatal_signals)
- print_fatal_signal(regs, info->si_signo);
+ print_fatal_signal(info->si_signo);
/*
* If it was able to dump core, this kills all
* other threads in the group and synchronizes with