diff options
| author | riastradh <riastradh@NetBSD.org> | 2023-06-20 15:22:04 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2023-06-20 15:22:04 +0000 |
| commit | 729c2744275fb978ba44f55c0f39f9b123debe79 (patch) | |
| tree | 6317dd1a143ed5294d9b6576b0b058a50174da16 /sys | |
| parent | 966effa92ceb8551947310480df97c45f9f0a73d (diff) | |
compat_ossaudio: Zero-initialize idat before copyout.
Unclear if there are any paths to the copyout without initialization,
but let's play it safe to keep the auditing effort low.
XXX pullup-8
XXX pullup-9
XXX pullup-10
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/compat/ossaudio/ossaudio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/ossaudio/ossaudio.c b/sys/compat/ossaudio/ossaudio.c index 03f78489cd1..32da7ab3ecf 100644 --- a/sys/compat/ossaudio/ossaudio.c +++ b/sys/compat/ossaudio/ossaudio.c @@ -1,4 +1,4 @@ -/* $NetBSD: ossaudio.c,v 1.84 2021/09/07 11:43:05 riastradh Exp $ */ +/* $NetBSD: ossaudio.c,v 1.85 2023/06/20 15:22:04 riastradh Exp $ */ /*- * Copyright (c) 1997, 2008 The NetBSD Foundation, Inc. @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ossaudio.c,v 1.84 2021/09/07 11:43:05 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ossaudio.c,v 1.85 2023/06/20 15:22:04 riastradh Exp $"); #include <sys/param.h> #include <sys/proc.h> @@ -1069,7 +1069,7 @@ oss_ioctl_mixer(struct lwp *lwp, const struct oss_sys_ioctl_args *uap, register_ mixer_ctrl_t mc; struct oss_mixer_info omi; struct audio_device adev; - int idat; + int idat = 0; int i; int error; int l, r, n, e; |
