Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Forcefully detach children of audio instances.
details: https://anonhg.NetBSD.org/src/rev/a46cc0b4e5da
branches: trunk
changeset: 358583:a46cc0b4e5da
user: nat <nat%NetBSD.org@localhost>
date: Tue Jan 09 04:14:21 2018 +0000
description:
Forcefully detach children of audio instances.
This addresses part of PR kern/52889 as children of pad(4) were not
detaching.
diffstat:
sys/dev/audio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 195a333ac62b -r a46cc0b4e5da sys/dev/audio.c
--- a/sys/dev/audio.c Tue Jan 09 04:10:27 2018 +0000
+++ b/sys/dev/audio.c Tue Jan 09 04:14:21 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.448 2018/01/09 04:10:27 nat Exp $ */
+/* $NetBSD: audio.c,v 1.449 2018/01/09 04:14:21 nat 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.448 2018/01/09 04:10:27 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.449 2018/01/09 04:14:21 nat Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -894,7 +894,7 @@
DPRINTF(("audio_detach: sc=%p flags=%d\n", sc, flags));
/* Start draining existing accessors of the device. */
- if ((rc = config_detach_children(self, flags)) != 0)
+ if ((rc = config_detach_children(self, flags | DETACH_FORCE)) != 0)
return rc;
mutex_enter(sc->sc_lock);
sc->sc_dying = true;
Home |
Main Index |
Thread Index |
Old Index