mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
signal: Replace __group_send_sig_info with send_signal_locked
The function __group_send_sig_info is just a light wrapper around send_signal_locked with one parameter fixed to a constant value. As the wrapper adds no real value update the code to directly call the wrapped function. Tested-by: Kees Cook <keescook@chromium.org> Reviewed-by: Oleg Nesterov <oleg@redhat.com> Link: https://lkml.kernel.org/r/20220505182645.497868-2-ebiederm@xmission.com Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
@@ -1281,12 +1281,6 @@ static int __init setup_print_fatal_signals(char *str)
|
||||
|
||||
__setup("print-fatal-signals=", setup_print_fatal_signals);
|
||||
|
||||
int
|
||||
__group_send_sig_info(int sig, struct kernel_siginfo *info, struct task_struct *p)
|
||||
{
|
||||
return send_signal_locked(sig, info, p, PIDTYPE_TGID);
|
||||
}
|
||||
|
||||
int do_send_sig_info(int sig, struct kernel_siginfo *info, struct task_struct *p,
|
||||
enum pid_type type)
|
||||
{
|
||||
@@ -2173,7 +2167,7 @@ static void do_notify_parent_cldstop(struct task_struct *tsk,
|
||||
spin_lock_irqsave(&sighand->siglock, flags);
|
||||
if (sighand->action[SIGCHLD-1].sa.sa_handler != SIG_IGN &&
|
||||
!(sighand->action[SIGCHLD-1].sa.sa_flags & SA_NOCLDSTOP))
|
||||
__group_send_sig_info(SIGCHLD, &info, parent);
|
||||
send_signal_locked(SIGCHLD, &info, parent, PIDTYPE_TGID);
|
||||
/*
|
||||
* Even if SIGCHLD is not generated, we must wake up wait4 calls.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user