Print this page
5253 kmem_alloc/kmem_zalloc won't fail with KM_SLEEP
5254 getrbuf won't fail with KM_SLEEP

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/ufs/ufs_acl.c
          +++ new/usr/src/uts/common/fs/ufs/ufs_acl.c
↓ open down ↓ 732 lines elided ↑ open up ↑
 733  733          vsap->vsa_aclentp   = NULL;
 734  734          vsap->vsa_dfaclcnt  = 0;        /* Default ACLs are not fabricated */
 735  735          vsap->vsa_dfaclentp = NULL;
 736  736  
 737  737          if (vsap->vsa_mask & (VSA_ACLCNT | VSA_ACL))
 738  738                  vsap->vsa_aclcnt    = 4;  /* USER, GROUP, OTHER, and CLASS */
 739  739  
 740  740          if (vsap->vsa_mask & VSA_ACL) {
 741  741                  vsap->vsa_aclentp = kmem_zalloc(4 * sizeof (aclent_t),
 742  742                      KM_SLEEP);
 743      -                if (vsap->vsa_aclentp == NULL)
 744      -                        return (ENOMEM);
      743 +
 745  744                  aclentp = vsap->vsa_aclentp;
 746  745  
 747  746                  /* Owner */
 748  747                  aclentp->a_type = USER_OBJ;
 749  748                  aclentp->a_perm = ((ushort_t)(ip->i_mode & 0700)) >> 6;
 750  749                  aclentp->a_id = ip->i_uid;      /* Really undefined */
 751  750                  aclentp++;
 752  751  
 753  752                  /* Group */
 754  753                  aclentp->a_type = GROUP_OBJ;
↓ open down ↓ 1359 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX