commit | c2edb305d6846ee8af7b5133845e23943d128e4c | [log] [tgz] |
---|---|---|
author | Jan Kara <jack@suse.com> | Mon Jun 29 16:08:45 2015 +0200 |
committer | Jan Kara <jack@suse.com> | Thu Jul 23 20:59:37 2015 +0200 |
tree | b87a0e482f3b7d0e80bc6cd473a2cc11901a5bb6 | |
parent | 6184fc0b8dd76c6aedc7a26e93254993e14e52de [diff] [blame] |
ext2: Handle error from dquot_initalize() dquot_initialize() can now return error. Handle it where possible. Signed-off-by: Jan Kara <jack@suse.com>
diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c index 5c04a0d..efe5fb2 100644 --- a/fs/ext2/ialloc.c +++ b/fs/ext2/ialloc.c
@@ -577,7 +577,10 @@ goto fail; } - dquot_initialize(inode); + err = dquot_initialize(inode); + if (err) + goto fail_drop; + err = dquot_alloc_inode(inode); if (err) goto fail_drop;