# HG changeset patch # User jchu # Date 1172511430 28800 # Node ID dce229b9418d63d40c637642292de768d74fabe6 # Parent 00e75dc8b74926bbaa53729f48a5ee78d3362342 6526213 incomplete fix causes panic upon detaching QLC connected to PCIe rootport diff -r 00e75dc8b749 -r dce229b9418d usr/src/uts/sun4/io/px/px.c --- a/usr/src/uts/sun4/io/px/px.c Sun Feb 25 23:16:16 2007 -0800 +++ b/usr/src/uts/sun4/io/px/px.c Mon Feb 26 09:37:10 2007 -0800 @@ -1266,6 +1266,9 @@ break; case DDI_CTLOPS_DETACH: + if (!pcie_is_child(dip, rdip)) + return (DDI_SUCCESS); + ds = (struct detachspec *)arg; switch (ds->when) { case DDI_POST: