Commit c46a131c authored by Al Viro's avatar Al Viro Committed by Alex Elder
Browse files

xfs: fix ->mknod() return value on xfs_get_acl() failure

->mknod() should return negative on errors and PTR_ERR() gives
already negative value...
Signed-off-by: default avatarAl Viro <>
Reviewed-by: default avatarChristoph Hellwig <>
Signed-off-by: default avatarAlex Elder <>
parent 59c5f46f
......@@ -182,7 +182,7 @@ xfs_vn_mknod(
if (IS_POSIXACL(dir)) {
default_acl = xfs_get_acl(dir, ACL_TYPE_DEFAULT);
if (IS_ERR(default_acl))
return -PTR_ERR(default_acl);
return PTR_ERR(default_acl);
if (!default_acl)
mode &= ~current_umask();
Supports Markdown
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