Skip to content

Commit edfb8eb

Browse files
Andreas Gruenbacherdchinner
authored andcommitted
xfs: Fix error path in xfs_get_acl
Error codes from xfs_attr_get other than -ENOATTR were not properly reported. Fix that. In addition, the declaration of struct xfs_inode in xfs_acl.h isn't needed. Signed-off-by: Andreas Gruenbacher <[email protected]> Reviewed-by: Dave Chinner <[email protected]> Signed-off-by: Dave Chinner <[email protected]>
1 parent fc0561c commit edfb8eb

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

fs/xfs/xfs_acl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ xfs_get_acl(struct inode *inode, int type)
163163
*/
164164
if (error == -ENOATTR)
165165
goto out_update_cache;
166+
acl = ERR_PTR(error);
166167
goto out;
167168
}
168169

fs/xfs/xfs_acl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
struct inode;
2222
struct posix_acl;
23-
struct xfs_inode;
2423

2524
#ifdef CONFIG_XFS_POSIX_ACL
2625
extern struct posix_acl *xfs_get_acl(struct inode *inode, int type);

0 commit comments

Comments
 (0)