Commit d570ea4b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ACL version mismatch error code fix

From: Andreas Gruenbacher <agruen@suse.de>

Return EOPNOTSUPP rather than EINVAL when we discover an ACL version
mismatch.
parent 620bde45
......@@ -29,7 +29,7 @@ posix_acl_from_xattr(const void *value, size_t size)
if (size < sizeof(posix_acl_xattr_header))
return ERR_PTR(-EINVAL);
if (header->a_version != cpu_to_le32(POSIX_ACL_XATTR_VERSION))
return ERR_PTR(-EINVAL);
return ERR_PTR(-EOPNOTSUPP);
count = posix_acl_xattr_count(size);
if (count < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment