Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Add missing initialization of sc_rfilters in audioat...
details: https://anonhg.NetBSD.org/src/rev/2246b366d9b6
branches: trunk
changeset: 825951:2246b366d9b6
user: isaki <isaki%NetBSD.org@localhost>
date: Tue Aug 08 05:46:23 2017 +0000
description:
Add missing initialization of sc_rfilters in audioattach().
diffstat:
sys/dev/audio.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r e49b308078cc -r 2246b366d9b6 sys/dev/audio.c
--- a/sys/dev/audio.c Tue Aug 08 05:42:30 2017 +0000
+++ b/sys/dev/audio.c Tue Aug 08 05:46:23 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.388 2017/08/08 05:42:30 isaki Exp $ */
+/* $NetBSD: audio.c,v 1.389 2017/08/08 05:46:23 isaki Exp $ */
/*-
* Copyright (c) 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -148,7 +148,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.388 2017/08/08 05:42:30 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.389 2017/08/08 05:46:23 isaki Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -523,8 +523,9 @@
vc->sc_open = 0;
vc->sc_mode = 0;
vc->sc_npfilters = 0;
- memset(vc->sc_pfilters, 0,
- sizeof(vc->sc_pfilters));
+ vc->sc_nrfilters = 0;
+ memset(vc->sc_pfilters, 0, sizeof(vc->sc_pfilters));
+ memset(vc->sc_rfilters, 0, sizeof(vc->sc_rfilters));
vc->sc_lastinfovalid = false;
vc->sc_swvol = 255;
vc->sc_recswvol = 255;
Home |
Main Index |
Thread Index |
Old Index