OpenSolaris

Printable Version Enter a New Search
Bug ID 6735702
Synopsis ses_psu_state() is broken
State 10-Fix Delivered (Fix available in build)
Category:Subcategory library:fm
Keywords
Responsible Engineer Eric Schrock
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_97
Fixed In snv_97
Release Fixed solaris_nevada(snv_97)
Related Bugs 6720452
Submit Date 10-August-2008
Last Update Date 28-August-2008
Description
In ses_psu_state(), we have:

        if ((nvlist_lookup_boolean_value(props, SES_PSU_PROP_DC_FAIL,
            &value) && value) ||
            (nvlist_lookup_boolean_value(props, SES_PSU_PROP_AC_FAIL,
            &value) && value))
                state |= TOPO_SENSOR_STATE_POWER_SUPPLY_INPUT_LOST;

The return value checks against nvlist_lookup_boolean_value() need to
be checking for '== 0'.
Work Around
N/A
Comments
N/A