Print this page
5253 kmem_alloc/kmem_zalloc won't fail with KM_SLEEP
5254 getrbuf won't fail with KM_SLEEP
*** 738,749 ****
vsap->vsa_aclcnt = 4; /* USER, GROUP, OTHER, and CLASS */
if (vsap->vsa_mask & VSA_ACL) {
vsap->vsa_aclentp = kmem_zalloc(4 * sizeof (aclent_t),
KM_SLEEP);
! if (vsap->vsa_aclentp == NULL)
! return (ENOMEM);
aclentp = vsap->vsa_aclentp;
/* Owner */
aclentp->a_type = USER_OBJ;
aclentp->a_perm = ((ushort_t)(ip->i_mode & 0700)) >> 6;
--- 738,748 ----
vsap->vsa_aclcnt = 4; /* USER, GROUP, OTHER, and CLASS */
if (vsap->vsa_mask & VSA_ACL) {
vsap->vsa_aclentp = kmem_zalloc(4 * sizeof (aclent_t),
KM_SLEEP);
!
aclentp = vsap->vsa_aclentp;
/* Owner */
aclentp->a_type = USER_OBJ;
aclentp->a_perm = ((ushort_t)(ip->i_mode & 0700)) >> 6;