Date: Sat, 8 Sep 2018 18:57:29 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r338534 - head/sys/dev/intel Message-ID: <201809081857.w88IvTPR035586@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sat Sep 8 18:57:29 2018 New Revision: 338534 URL: https://svnweb.freebsd.org/changeset/base/338534 Log: 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 Modified: head/sys/dev/intel/spi.c Modified: head/sys/dev/intel/spi.c ============================================================================== --- head/sys/dev/intel/spi.c Sat Sep 8 18:57:05 2018 (r338533) +++ head/sys/dev/intel/spi.c Sat Sep 8 18:57:29 2018 (r338534) @@ -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[] = {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809081857.w88IvTPR035586>