signal: Remove task parameter from force_sigsegv
The function force_sigsegv is always called on the current task so passing in current is redundant and not passing in current makes this fact obvious. This also makes it clear force_sigsegv always calls force_sig on the current task. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
@@ -375,7 +375,7 @@ static int setup_frame32(struct ksignal *ksig, struct pt_regs *regs,
|
||||
pr_info("%s[%d] bad frame in setup_frame32: %08lx TPC %08lx O7 %08lx\n",
|
||||
current->comm, current->pid, (unsigned long)sf,
|
||||
regs->tpc, regs->u_regs[UREG_I7]);
|
||||
force_sigsegv(ksig->sig, current);
|
||||
force_sigsegv(ksig->sig);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -509,7 +509,7 @@ static int setup_rt_frame32(struct ksignal *ksig, struct pt_regs *regs,
|
||||
pr_info("%s[%d] bad frame in setup_rt_frame32: %08lx TPC %08lx O7 %08lx\n",
|
||||
current->comm, current->pid, (unsigned long)sf,
|
||||
regs->tpc, regs->u_regs[UREG_I7]);
|
||||
force_sigsegv(ksig->sig, current);
|
||||
force_sigsegv(ksig->sig);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
@@ -374,7 +374,7 @@ setup_rt_frame(struct ksignal *ksig, struct pt_regs *regs)
|
||||
pr_info("%s[%d] bad frame in setup_rt_frame: %016lx TPC %016lx O7 %016lx\n",
|
||||
current->comm, current->pid, (unsigned long)sf,
|
||||
regs->tpc, regs->u_regs[UREG_I7]);
|
||||
force_sigsegv(ksig->sig, current);
|
||||
force_sigsegv(ksig->sig);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user