signal: Remove task parameter from force_sig
All of the remaining callers pass current into force_sig so remove the task parameter to make this obvious and to make misuse more difficult in the future. This also makes it clear force_sig passes current into force_sig_info. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
@@ -641,7 +641,7 @@ asmlinkage void sys_sigreturn(void)
|
||||
if (sig < 0)
|
||||
goto badframe;
|
||||
else if (sig)
|
||||
force_sig(sig, current);
|
||||
force_sig(sig);
|
||||
|
||||
/*
|
||||
* Don't let your children do this ...
|
||||
@@ -654,7 +654,7 @@ asmlinkage void sys_sigreturn(void)
|
||||
/* Unreached */
|
||||
|
||||
badframe:
|
||||
force_sig(SIGSEGV, current);
|
||||
force_sig(SIGSEGV);
|
||||
}
|
||||
#endif /* CONFIG_TRAD_SIGNALS */
|
||||
|
||||
@@ -678,7 +678,7 @@ asmlinkage void sys_rt_sigreturn(void)
|
||||
if (sig < 0)
|
||||
goto badframe;
|
||||
else if (sig)
|
||||
force_sig(sig, current);
|
||||
force_sig(sig);
|
||||
|
||||
if (restore_altstack(&frame->rs_uc.uc_stack))
|
||||
goto badframe;
|
||||
@@ -694,7 +694,7 @@ asmlinkage void sys_rt_sigreturn(void)
|
||||
/* Unreached */
|
||||
|
||||
badframe:
|
||||
force_sig(SIGSEGV, current);
|
||||
force_sig(SIGSEGV);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_TRAD_SIGNALS
|
||||
|
Reference in New Issue
Block a user