svn commit: r196619 - in stable/8/sys: . amd64/include/xen
cddl/contrib/opensolaris contrib/dev/acpica contrib/pf
dev/alc dev/xen/xenpci
Pyun YongHyeon
yongari at FreeBSD.org
Fri Aug 28 18:01:37 UTC 2009
Author: yongari
Date: Fri Aug 28 18:01:37 2009
New Revision: 196619
URL: http://svn.freebsd.org/changeset/base/196619
Log:
MFC r196517:
Don't try to power down PHY when alc(4) failed to map the device.
This fixes system crash when mapping alc(4) device failed in device
attach.
Reported by: Jim < stapleton.41 <> gmail DOT com >
Approved by: re (kib)
Modified:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/alc/if_alc.c
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/dev/alc/if_alc.c
==============================================================================
--- stable/8/sys/dev/alc/if_alc.c Fri Aug 28 17:34:22 2009 (r196618)
+++ stable/8/sys/dev/alc/if_alc.c Fri Aug 28 18:01:37 2009 (r196619)
@@ -858,7 +858,8 @@ alc_detach(device_t dev)
sc->alc_intrhand[i] = NULL;
}
}
- alc_phy_down(sc);
+ if (sc->alc_res[0] != NULL)
+ alc_phy_down(sc);
bus_release_resources(dev, sc->alc_irq_spec, sc->alc_irq);
if ((sc->alc_flags & (ALC_FLAG_MSI | ALC_FLAG_MSIX)) != 0)
pci_release_msi(dev);
More information about the svn-src-stable
mailing list