Skip to content

Commit

Permalink
xfs: fix ->mknod() return value on xfs_get_acl() failure
Browse files Browse the repository at this point in the history
->mknod() should return negative on errors and PTR_ERR() gives
already negative value...

Signed-off-by: Al Viro <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
  • Loading branch information
Al Viro authored and Alex Elder committed Jun 14, 2011
1 parent 59c5f46 commit c46a131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/linux-2.6/xfs_iops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c46a131

Please sign in to comment.