Print this page
patch tsoome-feedback

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/cmd_oplerr.c
          +++ new/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/cmd_oplerr.c
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29   27  /*
  30   28   * OPL platform specific functions for
  31   29   * CPU/Memory error diagnosis engine.
  32   30   */
  33   31  #include <cmd.h>
  34   32  #include <cmd_dimm.h>
  35   33  #include <cmd_bank.h>
  36   34  #include <cmd_page.h>
  37   35  #include <cmd_opl.h>
  38   36  #include <string.h>
↓ open down ↓ 134 lines elided ↑ open up ↑
 173  171                                  opl_cpu->oc_cmd_cpu = NULL;
 174  172                                  fmd_hdl_debug(hdl,
 175  173                                      "missing asru, cpuid %u excluded\n",
 176  174                                      opl_cpu->oc_cpuid);
 177  175                                  continue;
 178  176                          }
 179  177  
 180  178                          sib_cpu = cmd_cpu_lookup(hdl, fmri, class,
 181  179                              CMD_CPU_LEVEL_THREAD);
 182  180                          if (sib_cpu == NULL || sib_cpu->cpu_faulting) {
 183      -                                if (fmri != NULL)
 184      -                                        nvlist_free(fmri);
      181 +                                nvlist_free(fmri);
 185  182                                  opl_cpu->oc_cmd_cpu = NULL;
 186  183                                  fmd_hdl_debug(hdl,
 187  184                                  "cpu not present, cpuid %u excluded\n",
 188  185                                      opl_cpu->oc_cpuid);
 189  186                                  continue;
 190  187                          }
 191  188                          opl_cpu->oc_cmd_cpu = sib_cpu;
 192      -                        if (fmri != NULL)
 193      -                                nvlist_free(fmri);
      189 +                        nvlist_free(fmri);
 194  190                          nsusp++;
 195  191                  }
 196  192                  if (cpu->cpu_cpuid == main_cpuid) {
 197  193                          if (cc->cc_cp != NULL &&
 198  194                              fmd_case_solved(hdl, cc->cc_cp)) {
 199  195                                  if (cpu_list != NULL)
 200  196                                          opl_cpulist_free(hdl, cpu_list);
 201  197                                  return (CMD_EVD_REDUND);
 202  198                          }
 203  199  
↓ open down ↓ 330 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX