summaryrefslogtreecommitdiff
path: root/sys/compat/linux/arch/m68k/linux_machdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linux/arch/m68k/linux_machdep.c')
-rw-r--r--sys/compat/linux/arch/m68k/linux_machdep.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/compat/linux/arch/m68k/linux_machdep.c b/sys/compat/linux/arch/m68k/linux_machdep.c
index 115f9f2e7c1..dedc08e6781 100644
--- a/sys/compat/linux/arch/m68k/linux_machdep.c
+++ b/sys/compat/linux/arch/m68k/linux_machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_machdep.c,v 1.42 2010/07/07 01:30:34 chs Exp $ */
+/* $NetBSD: linux_machdep.c,v 1.42.64.1 2022/08/03 11:11:33 martin Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.42 2010/07/07 01:30:34 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.42.64.1 2022/08/03 11:11:33 martin Exp $");
#define COMPAT_LINUX 1
@@ -118,6 +118,8 @@ setup_linux_sigframe(struct frame *frame, int sig, const sigset_t *mask, void *u
p->p_pid, sig, &ft, fp, &fp->sf_c.c_sc, ft);
#endif
+ memset(&kf, 0, sizeof(kf));
+
/* Build stack frame. */
kf.sf_psigtramp = fp->sf_sigtramp; /* return addr for handler */
kf.sf_signum = native_to_linux_signo[sig];
@@ -280,6 +282,8 @@ setup_linux_rt_sigframe(struct frame *frame, int sig, const sigset_t *mask, void
p->p_pid, sig, &ft, fp, &fp->sf_uc, ft);
#endif
+ memset(&kf, 0, sizeof(kf));
+
/* Build stack frame. */
kf.sf_psigtramp = fp->sf_sigtramp; /* return addr for handler */
kf.sf_signum = native_to_linux_signo[sig];