http://defect.opensolaris.org/bz/show_bug.cgi?id=4307





--- Comment #2 from Aubrey.Li <aubrey.li at intel.com>  2008-10-28 22:25:35 ---
Here is a patch for it.


diff -r b19ac1d32eaa usr/src/uts/i86pc/io/cpudrv/cpudrv_mach.c
--- a/usr/src/uts/i86pc/io/cpudrv/cpudrv_mach.c Mon Oct 27 15:08:24 2008 -0700
+++ b/usr/src/uts/i86pc/io/cpudrv/cpudrv_mach.c Wed Oct 29 13:24:13 2008 +0800
@@ -739,7 +739,12 @@
                return (CPUPM_NO_DOMAIN);

        mach_state = cpudsp->mach_state;
-       domain = mach_state->pstate_domain_node->pdn_domain;
+
+       if (mach_state->pstate_domain_node == NULL)
+               return (CPUPM_NO_DOMAIN);
+
+       if ((domain = mach_state->pstate_domain_node->pdn_domain) == NULL)
+               return (CPUPM_NO_DOMAIN);

        return ((id_t)domain->pd_domain);
 }

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Reply via email to