[PATCH] ext2: drop quota reference before releasing inode
[platform/kernel/linux-arm64.git] / fs / ext2 / ialloc.c
index 77e0591..161f156 100644 (file)
@@ -612,6 +612,7 @@ got:
        err = ext2_init_acl(inode, dir);
        if (err) {
                DQUOT_FREE_INODE(inode);
+               DQUOT_DROP(inode);
                goto fail2;
        }
        mark_inode_dirty(inode);