Skip to content

Commit c46a131

Browse files
Al ViroAlex Elder
authored andcommitted
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: Al Viro <viro@zeniv.linux.org.uk> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
1 parent 59c5f46 commit c46a131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/linux-2.6/xfs_iops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ xfs_vn_mknod(
182182
if (IS_POSIXACL(dir)) {
183183
default_acl = xfs_get_acl(dir, ACL_TYPE_DEFAULT);
184184
if (IS_ERR(default_acl))
185-
return -PTR_ERR(default_acl);
185+
return PTR_ERR(default_acl);
186186

187187
if (!default_acl)
188188
mode &= ~current_umask();

0 commit comments

Comments
 (0)