summaryrefslogtreecommitdiffstats
path: root/fs/ext2/ialloc.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.com>2015-06-29 16:08:45 +0200
committerJan Kara <jack@suse.com>2015-07-23 20:59:37 +0200
commitc2edb305d6846ee8af7b5133845e23943d128e4c (patch)
treeb87a0e482f3b7d0e80bc6cd473a2cc11901a5bb6 /fs/ext2/ialloc.c
parent6184fc0b8dd76c6aedc7a26e93254993e14e52de (diff)
downloadlinux-stable-c2edb305d6846ee8af7b5133845e23943d128e4c.tar.gz
linux-stable-c2edb305d6846ee8af7b5133845e23943d128e4c.tar.bz2
linux-stable-c2edb305d6846ee8af7b5133845e23943d128e4c.zip
ext2: Handle error from dquot_initalize()
dquot_initialize() can now return error. Handle it where possible. Signed-off-by: Jan Kara <jack@suse.com>
Diffstat (limited to 'fs/ext2/ialloc.c')
-rw-r--r--fs/ext2/ialloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c
index 5c04a0ddea80..efe5fb21c533 100644
--- a/fs/ext2/ialloc.c
+++ b/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;