Print this page
5679 be_sort_list(): Possible null pointer dereference

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libbe/common/libbe.h
          +++ new/usr/src/lib/libbe/common/libbe.h
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   */
  25   25  
  26   26  /*
  27   27   * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
  28   28   * Copyright 2015 Toomas Soome <tsoome@me.com>
       29 + * Copyright 2015 Gary Mills
  29   30   */
  30   31  
  31   32  #ifndef _LIBBE_H
  32   33  #define _LIBBE_H
  33   34  
  34   35  #include <libnvpair.h>
  35   36  #include <uuid/uuid.h>
  36   37  #include <libzfs.h>
  37   38  
  38   39  #ifdef __cplusplus
↓ open down ↓ 194 lines elided ↑ open up ↑
 233  234  int be_destroy_snapshot(nvlist_t *);
 234  235  int be_rollback(nvlist_t *);
 235  236  
 236  237  /*
 237  238   * Functions for listing and getting information about existing BEs.
 238  239   */
 239  240  int be_list(char *, be_node_list_t **);
 240  241  void be_free_list(be_node_list_t *);
 241  242  int be_max_avail(char *, uint64_t *);
 242  243  char *be_err_to_str(int);
 243      -void be_sort(be_node_list_t **, int);
      244 +int be_sort(be_node_list_t **, int);
 244  245  
 245  246  /*
 246  247   * Library functions
 247  248   */
 248  249  void libbe_print_errors(boolean_t);
 249  250  
 250  251  #ifdef __cplusplus
 251  252  }
 252  253  #endif
 253  254  
 254  255  #endif  /* _LIBBE_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX