Commit 4aaefee5 authored by Al Viro's avatar Al Viro

print_fatal_signal(): get rid of pt_regs argument

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 94eb22d5
...@@ -1159,8 +1159,9 @@ static int send_signal(int sig, struct siginfo *info, struct task_struct *t, ...@@ -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); 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", printk("%s/%d: potentially unexpected fatal signal %d.\n",
current->comm, task_pid_nr(current), signr); current->comm, task_pid_nr(current), signr);
...@@ -2349,7 +2350,7 @@ int get_signal_to_deliver(siginfo_t *info, struct k_sigaction *return_ka, ...@@ -2349,7 +2350,7 @@ int get_signal_to_deliver(siginfo_t *info, struct k_sigaction *return_ka,
if (sig_kernel_coredump(signr)) { if (sig_kernel_coredump(signr)) {
if (print_fatal_signals) 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 * If it was able to dump core, this kills all
* other threads in the group and synchronizes with * other threads in the group and synchronizes with
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment