Print this page
patch tsoome-feedback

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fm/fmd/common/fmd_event.c
          +++ new/usr/src/cmd/fm/fmd/common/fmd_event.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  #include <sys/fm/protocol.h>
  30   28  #include <limits.h>
  31   29  
  32   30  #include <fmd_alloc.h>
  33   31  #include <fmd_subr.h>
  34   32  #include <fmd_event.h>
  35   33  #include <fmd_string.h>
  36   34  #include <fmd_module.h>
  37   35  #include <fmd_case.h>
  38   36  #include <fmd_log.h>
↓ open down ↓ 176 lines elided ↑ open up ↑
 215  213                  fmd_case_rele(ep->ev_data);
 216  214                  break;
 217  215          case FMD_EVT_CTL:
 218  216                  fmd_ctl_fini(ep->ev_data);
 219  217                  break;
 220  218          case FMD_EVT_TOPO:
 221  219                  fmd_topo_rele(ep->ev_data);
 222  220                  break;
 223  221          }
 224  222  
 225      -        if (ep->ev_nvl != NULL)
 226      -                nvlist_free(ep->ev_nvl);
      223 +        nvlist_free(ep->ev_nvl);
 227  224  
 228  225          fmd_free(ep, sizeof (fmd_event_impl_t));
 229  226  }
 230  227  
 231  228  void
 232  229  fmd_event_hold(fmd_event_t *e)
 233  230  {
 234  231          fmd_event_impl_t *ep = (fmd_event_impl_t *)e;
 235  232  
 236  233          (void) pthread_mutex_lock(&ep->ev_lock);
↓ open down ↓ 131 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX