Merge tag 'asoc-fix-v3.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/brooni...
[firefly-linux-kernel-4.4.55.git] / fs / ocfs2 / xattr.c
index 0ba9ea1e7961f8fa9f357853763f2514aa21a1b9..2e3ea308c14430640fe3a28f35d5149fc3d7cdf0 100644 (file)
@@ -7189,7 +7189,7 @@ int ocfs2_init_security_and_acl(struct inode *dir,
        struct buffer_head *dir_bh = NULL;
 
        ret = ocfs2_init_security_get(inode, dir, qstr, NULL);
-       if (!ret) {
+       if (ret) {
                mlog_errno(ret);
                goto leave;
        }