Date: Sun, 16 Jun 2019 21:56:45 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r349121 - head/sys/powerpc/ofw Message-ID: <201906162156.x5GLuj8W044707@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906162156.x5GLuj8W044707>