summaryrefslogtreecommitdiffstats
path: root/kernel/seccomp.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2017-08-18 19:56:27 -0500
committerEric W. Biederman <ebiederm@xmission.com>2018-01-22 19:07:08 -0600
commit3b10db2b06e2f6191aabb14babe28dcaa657a947 (patch)
treea903169e259f30612105288af09fe166172c6822 /kernel/seccomp.c
parent5f74972ce69fdc6473f74253283408af75a3be15 (diff)
downloadlinux-stable-3b10db2b06e2f6191aabb14babe28dcaa657a947.tar.gz
linux-stable-3b10db2b06e2f6191aabb14babe28dcaa657a947.tar.bz2
linux-stable-3b10db2b06e2f6191aabb14babe28dcaa657a947.zip
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>
Diffstat (limited to 'kernel/seccomp.c')
-rw-r--r--kernel/seccomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/seccomp.c b/kernel/seccomp.c
index 5f0dfb2abb8d..3153c9ea51bf 100644
--- a/kernel/seccomp.c
+++ b/kernel/seccomp.c
@@ -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);