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:
@@ -277,7 +277,7 @@ void __rseq_handle_notify_resume(struct ksignal *ksig, struct pt_regs *regs)
|
||||
|
||||
error:
|
||||
sig = ksig ? ksig->sig : 0;
|
||||
force_sigsegv(sig, t);
|
||||
force_sigsegv(sig);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEBUG_RSEQ
|
||||
|
@@ -1607,8 +1607,10 @@ EXPORT_SYMBOL(force_sig);
|
||||
* the problem was already a SIGSEGV, we'll want to
|
||||
* make sure we don't even try to deliver the signal..
|
||||
*/
|
||||
void force_sigsegv(int sig, struct task_struct *p)
|
||||
void force_sigsegv(int sig)
|
||||
{
|
||||
struct task_struct *p = current;
|
||||
|
||||
if (sig == SIGSEGV) {
|
||||
unsigned long flags;
|
||||
spin_lock_irqsave(&p->sighand->siglock, flags);
|
||||
@@ -2717,7 +2719,7 @@ static void signal_delivered(struct ksignal *ksig, int stepping)
|
||||
void signal_setup_done(int failed, struct ksignal *ksig, int stepping)
|
||||
{
|
||||
if (failed)
|
||||
force_sigsegv(ksig->sig, current);
|
||||
force_sigsegv(ksig->sig);
|
||||
else
|
||||
signal_delivered(ksig, stepping);
|
||||
}
|
||||
|
Reference in New Issue
Block a user