svn commit: r338534 - head/sys/dev/intel

Konstantin Belousov kib at FreeBSD.org
Sat Sep 8 18:57:30 UTC 2018


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[] = {


More information about the svn-src-head mailing list