aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2018-09-08 18:57:29 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2018-09-08 18:57:29 +0000
commitfc71a66be0585082b12268a5427c748344ac02f2 (patch)
tree3124afb945aa49a78669d3900f1f8cd74d05d42d /sys/dev
parent7404ab5ba9ddb782532766cad35c4918d465e993 (diff)
downloadsrc-fc71a66be0585082b12268a5427c748344ac02f2.tar.gz
src-fc71a66be0585082b12268a5427c748344ac02f2.zip
intelspi: don't leak spibus children on detach.
Submitted by: Yuri Pankov MFC after: 1 week Approved by: re (gjb) Differential revision: https://reviews.freebsd.org/D17076
Notes
Notes: svn path=/head/; revision=338534
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/intel/spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/intel/spi.c b/sys/dev/intel/spi.c
index 575240fc3167..e9b9bfc46fb0 100644
--- a/sys/dev/intel/spi.c
+++ b/sys/dev/intel/spi.c
@@ -506,7 +506,7 @@ intelspi_detach(device_t dev)
bus_release_resource(dev, SYS_RES_IRQ,
sc->sc_irq_rid, sc->sc_irq_res);
- return (0);
+ return (bus_generic_detach(dev));
}
static device_method_t intelspi_methods[] = {