Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit edfb8ebc authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Dave Chinner
Browse files

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: default avatarAndreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent fc0561ce
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -163,6 +163,7 @@ xfs_get_acl(struct inode *inode, int type)
		 */
		if (error == -ENOATTR)
			goto out_update_cache;
		acl = ERR_PTR(error);
		goto out;
	}

+0 −1
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@

struct inode;
struct posix_acl;
struct xfs_inode;

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