Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Sep 2018 13:07:43 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r338693 - stable/11/sys/dev/intel
Message-ID:  <201809151307.w8FD7hAC092511@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat Sep 15 13:07:43 2018
New Revision: 338693
URL: https://svnweb.freebsd.org/changeset/base/338693

Log:
  MFC r338534:
  intelspi: don't leak spibus children on detach.

Modified:
  stable/11/sys/dev/intel/spi.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/intel/spi.c
==============================================================================
--- stable/11/sys/dev/intel/spi.c	Sat Sep 15 09:03:50 2018	(r338692)
+++ stable/11/sys/dev/intel/spi.c	Sat Sep 15 13:07:43 2018	(r338693)
@@ -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?201809151307.w8FD7hAC092511>