Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Ensure to detach children.
details: https://anonhg.NetBSD.org/src/rev/56881b744ab4
branches: trunk
changeset: 354370:56881b744ab4
user: nat <nat%NetBSD.org@localhost>
date: Wed Jun 14 06:55:37 2017 +0000
description:
Ensure to detach children.
diffstat:
sys/dev/spkr.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 8384390cdd7a -r 56881b744ab4 sys/dev/spkr.c
--- a/sys/dev/spkr.c Wed Jun 14 05:01:35 2017 +0000
+++ b/sys/dev/spkr.c Wed Jun 14 06:55:37 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spkr.c,v 1.12 2017/06/11 21:54:22 pgoyette Exp $ */
+/* $NetBSD: spkr.c,v 1.13 2017/06/14 06:55:37 nat Exp $ */
/*
* Copyright (c) 1990 Eric S. Raymond (esr%snark.thyrsus.com@localhost)
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spkr.c,v 1.12 2017/06/11 21:54:22 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spkr.c,v 1.13 2017/06/14 06:55:37 nat Exp $");
#if defined(_KERNEL_OPT)
#include "wsmux.h"
@@ -381,6 +381,7 @@
spkr_detach(device_t self, int flags)
{
struct spkr_softc *sc = device_private(self);
+ int rc;
#ifdef SPKRDEBUG
aprint_debug("%s: entering for unit %d\n", __func__, self->dv_unit);
@@ -390,7 +391,9 @@
if (sc->sc_inbuf != NULL)
return EBUSY;
- return 0;
+ rc = config_detach_children(self, flags);
+
+ return rc;
}
/* ARGSUSED */
Home |
Main Index |
Thread Index |
Old Index