]> Pileus Git - ~andy/linux/blobdiff - fs/ext3/acl.c
auto merge with /home/aegl/GIT/linus
[~andy/linux] / fs / ext3 / acl.c
index 328592c3a956f9e03317af985694b24fc608b8ff..638c13a26c0375dc5536fe44e51963c1cf217040 100644 (file)
@@ -286,6 +286,8 @@ ext3_check_acl(struct inode *inode, int mask)
 {
        struct posix_acl *acl = ext3_get_acl(inode, ACL_TYPE_ACCESS);
 
+       if (IS_ERR(acl))
+               return PTR_ERR(acl);
        if (acl) {
                int error = posix_acl_permission(inode, acl, mask);
                posix_acl_release(acl);