svn commit: r349121 - head/sys/powerpc/ofw

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sun Jun 16 21:56:46 UTC 2019


Author: nwhitehorn
Date: Sun Jun 16 21:56:45 2019
New Revision: 349121
URL: https://svnweb.freebsd.org/changeset/base/349121

Log:
  Fix bug on newbus device deletion: we should delete the child's devinfo
  on deletion, not the parent's.
  
  MFC after:	3 weeks

Modified:
  head/sys/powerpc/ofw/ofw_pcibus.c

Modified: head/sys/powerpc/ofw/ofw_pcibus.c
==============================================================================
--- head/sys/powerpc/ofw/ofw_pcibus.c	Sun Jun 16 20:01:45 2019	(r349120)
+++ head/sys/powerpc/ofw/ofw_pcibus.c	Sun Jun 16 21:56:45 2019	(r349121)
@@ -294,7 +294,7 @@ ofw_pcibus_child_deleted(device_t dev, device_t child)
 {
 	struct ofw_pcibus_devinfo *dinfo;
 
-	dinfo = device_get_ivars(dev);
+	dinfo = device_get_ivars(child);
 	ofw_bus_gen_destroy_devinfo(&dinfo->opd_obdinfo);
 	pci_child_deleted(dev, child);
 }


More information about the svn-src-head mailing list