Print this page
patch tsoome-feedback

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/fm/topo/modules/sun4v/cpuboard/cpuboard_hostbridge.c
          +++ new/usr/src/lib/fm/topo/modules/sun4v/cpuboard/cpuboard_hostbridge.c
↓ open down ↓ 176 lines elided ↑ open up ↑
 177  177          /* T5440 driver is always "px" */
 178  178          if (topo_prop_set_string(rcn, TOPO_PGROUP_IO, TOPO_IO_DRIVER,
 179  179              TOPO_PROP_IMMUTABLE, CPUBOARD_PX_DRV, &err) != 0) {
 180  180                  topo_mod_dprintf(mp, "Failed to set DRIVER property\n");
 181  181          }
 182  182          if ((mod = topo_mod_modfmri(mp, FM_MOD_SCHEME_VERSION, CPUBOARD_PX_DRV))
 183  183              == NULL || topo_prop_set_fmri(rcn, TOPO_PGROUP_IO,
 184  184              TOPO_IO_MODULE, TOPO_PROP_IMMUTABLE, mod,  &err) != 0) {
 185  185                  topo_mod_dprintf(mp, "Failed to set MODULE property\n");
 186  186          }
 187      -        if (mod != NULL)
 188      -                nvlist_free(mod);
      187 +        nvlist_free(mod);
 189  188  
 190  189          /* This is a PCIEX Root Complex */
 191  190          if (topo_prop_set_string(rcn, TOPO_PGROUP_PCI, TOPO_PCI_EXCAP,
 192  191              TOPO_PROP_IMMUTABLE, PCIEX_ROOT, &err) != 0) {
 193  192                  topo_mod_dprintf(mp, "Failed to set EXCAP property\n");
 194  193          }
 195  194          /* BDF of T5440 root complex is constant */
 196  195          if (topo_prop_set_string(rcn, TOPO_PGROUP_PCI,
 197  196              TOPO_PCI_BDF, TOPO_PROP_IMMUTABLE, CPUBOARD_PX_BDF, &err) != 0) {
 198  197                  topo_mod_dprintf(mp, "Failed to set EXCAP property\n");
↓ open down ↓ 103 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX