Print this page
patch tsoome-feedback

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/fm/topo/modules/SUNW,SPARC-Enterprise/ioboard/opl_hostbridge.c
          +++ new/usr/src/lib/fm/topo/modules/SUNW,SPARC-Enterprise/ioboard/opl_hostbridge.c
↓ open down ↓ 201 lines elided ↑ open up ↑
 202  202          /* Oberon driver is always "px" */
 203  203          if (topo_prop_set_string(rcn, TOPO_PGROUP_IO, TOPO_IO_DRIVER,
 204  204              TOPO_PROP_IMMUTABLE, OPL_PX_DRV, &err) != 0) {
 205  205                  topo_mod_dprintf(mp, "Failed to set DRIVER property\n");
 206  206          }
 207  207          if ((mod = topo_mod_modfmri(mp, FM_MOD_SCHEME_VERSION, OPL_PX_DRV))
 208  208              == NULL || topo_prop_set_fmri(rcn, TOPO_PGROUP_IO,
 209  209              TOPO_IO_MODULE, TOPO_PROP_IMMUTABLE, mod,  &err) != 0) {
 210  210                  topo_mod_dprintf(mp, "Failed to set MODULE property\n");
 211  211          }
 212      -        if (mod != NULL)
 213      -                nvlist_free(mod);
      212 +        nvlist_free(mod);
 214  213  
 215  214          /* This is a PCIEX Root Complex */
 216  215          if (topo_prop_set_string(rcn, TOPO_PGROUP_PCI, TOPO_PCI_EXCAP,
 217  216              TOPO_PROP_IMMUTABLE, PCIEX_ROOT, &err) != 0) {
 218  217                  topo_mod_dprintf(mp, "Failed to set EXCAP property\n");
 219  218          }
 220  219          /* BDF of Oberon root complex is constant */
 221  220          if (topo_prop_set_string(rcn, TOPO_PGROUP_PCI,
 222  221              TOPO_PCI_BDF, TOPO_PROP_IMMUTABLE, OPL_PX_BDF, &err) != 0) {
 223  222                  topo_mod_dprintf(mp, "Failed to set EXCAP property\n");
↓ open down ↓ 110 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX