summaryrefslogtreecommitdiffstats
path: root/kernel/fs/ext2/ialloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/ext2/ialloc.c')
-rw-r--r--kernel/fs/ext2/ialloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/fs/ext2/ialloc.c b/kernel/fs/ext2/ialloc.c
index 5c04a0dde..efe5fb21c 100644
--- a/kernel/fs/ext2/ialloc.c
+++ b/kernel/fs/ext2/ialloc.c
@@ -577,7 +577,10 @@ got:
goto fail;
}
- dquot_initialize(inode);
+ err = dquot_initialize(inode);
+ if (err)
+ goto fail_drop;
+
err = dquot_alloc_inode(inode);
if (err)
goto fail_drop;