mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
signal: Replace memset(info,...) with clear_siginfo for clarity
The function clear_siginfo is just a nice wrapper around memset so this results in no functional change. This change makes mistakes a little more difficult and it makes it clearer what is going on. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
parent
5f74972ce6
commit
3b10db2b06
4 changed files with 5 additions and 5 deletions
|
|
@ -515,7 +515,7 @@ void put_seccomp_filter(struct task_struct *tsk)
|
|||
|
||||
static void seccomp_init_siginfo(siginfo_t *info, int syscall, int reason)
|
||||
{
|
||||
memset(info, 0, sizeof(*info));
|
||||
clear_siginfo(info);
|
||||
info->si_signo = SIGSYS;
|
||||
info->si_code = SYS_SECCOMP;
|
||||
info->si_call_addr = (void __user *)KSTK_EIP(current);
|
||||
|
|
|
|||
|
|
@ -462,7 +462,7 @@ static struct k_itimer * alloc_posix_timer(void)
|
|||
kmem_cache_free(posix_timers_cache, tmr);
|
||||
return NULL;
|
||||
}
|
||||
memset(&tmr->sigq->info, 0, sizeof(siginfo_t));
|
||||
clear_siginfo(&tmr->sigq->info);
|
||||
return tmr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue