svn commit: r335988 - head/sys/arm/freescale/vybrid

Ian Lepore ian at FreeBSD.org
Thu Jul 5 15:52:27 UTC 2018


Author: ian
Date: Thu Jul  5 15:52:26 2018
New Revision: 335988
URL: https://svnweb.freebsd.org/changeset/base/335988

Log:
  Add a missing call to usb_bus_mem_free_all() when detaching.

Modified:
  head/sys/arm/freescale/vybrid/vf_ehci.c

Modified: head/sys/arm/freescale/vybrid/vf_ehci.c
==============================================================================
--- head/sys/arm/freescale/vybrid/vf_ehci.c	Thu Jul  5 15:40:14 2018	(r335987)
+++ head/sys/arm/freescale/vybrid/vf_ehci.c	Thu Jul  5 15:52:26 2018	(r335988)
@@ -421,6 +421,8 @@ vybrid_ehci_detach(device_t dev)
 		sc->sc_intr_hdl = NULL;
 	}
 
+	usb_bus_mem_free_all(&sc->sc_bus, &ehci_iterate_hw_softc);
+
 	bus_release_resources(dev, vybrid_ehci_spec, esc->res);
 
 	return (0);


More information about the svn-src-head mailing list