]> err.no Git - linux-2.6/commitdiff
[XFS] Catch errors from xfs_acl_vremove().
authorDavid Chinner <dgc@sgi.com>
Thu, 10 Apr 2008 02:21:04 +0000 (12:21 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Fri, 18 Apr 2008 01:57:57 +0000 (11:57 +1000)
Removing an ACL can return an error. Propagate it.

SGI-PV: 980084
SGI-Modid: xfs-linux-melb:xfs-kern:30793a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Niv Sardi <xaiki@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/xfs_acl.c

index 98b515d39187f892b71c1b289447c45e3d266bb2..8e130b9720ae8513d24a2307c5aba0a034718dac 100644 (file)
@@ -324,7 +324,7 @@ xfs_acl_vset(
        if (!basicperms) {
                xfs_acl_set_attr(vp, xfs_acl, kind, &error);
        } else {
-               xfs_acl_vremove(vp, _ACL_TYPE_ACCESS);
+               error = -xfs_acl_vremove(vp, _ACL_TYPE_ACCESS);
        }
 
 out: