Whamcloud - gitweb
LU-5150 mdc: Handle empty but non-zero acl xattr
[fs/lustre-release.git] / lustre / mdc / mdc_request.c
index f9e2b09..4bee7c2 100644 (file)
@@ -463,6 +463,8 @@ static int mdc_unpack_acl(struct ptlrpc_request *req, struct lustre_md *md)
                RETURN(-EPROTO);
 
        acl = posix_acl_from_xattr(&init_user_ns, buf, body->mbo_aclsize);
+       if (acl == NULL)
+               RETURN(0);
         if (IS_ERR(acl)) {
                 rc = PTR_ERR(acl);
                 CERROR("convert xattr to acl: %d\n", rc);