Print this page
patch tsoome-feedback

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/hotplugd/hotplugd_door.c
          +++ new/usr/src/cmd/hotplugd/hotplugd_door.c
↓ open down ↓ 245 lines elided ↑ open up ↑
 246  246                  (void) door_return(buf, len, NULL, 0);
 247  247                  return;
 248  248          }
 249  249  
 250  250          /* Return result code (when no nvlist) */
 251  251          (void) door_return((char *)&rv, sizeof (int), NULL, 0);
 252  252          return;
 253  253  
 254  254  fail:
 255  255          log_err("Door call failed (%s)\n", strerror(rv));
 256      -        if (args != NULL)
 257      -                nvlist_free(args);
 258      -        if (results != NULL)
 259      -                nvlist_free(results);
      256 +        nvlist_free(args);
      257 +        nvlist_free(results);
 260  258          (void) door_return((char *)&rv, sizeof (int), NULL, 0);
 261  259  }
 262  260  
 263  261  /*
 264  262   * check_auth()
 265  263   *
 266  264   *      Perform an RBAC authorization check.
 267  265   */
 268  266  static int
 269  267  check_auth(ucred_t *ucred, const char *auth)
↓ open down ↓ 491 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX