diff options
author | Chao Yu <yuchao0@huawei.com> | 2017-11-12 22:31:48 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2017-11-13 04:36:56 -0500 |
commit | 88d8ff976abdad043cc37dc1b4f01d93603842d7 (patch) | |
tree | 499e3f614b746b1c3197dd3f967c07e82216f655 | |
parent | dd5f6279732e8885061d7455b9d86fdcfdf7f183 (diff) |
quota: be aware of error from dquot_initialize
Commit 6184fc0b8dd7 ("quota: Propagate error from ->acquire_dquot()")
missed to handle error from dquot_initialize in dquot_file_open, fix it.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | fs/quota/dquot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index f68397923ebb..f95e0994f87d 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c | |||
@@ -2140,7 +2140,7 @@ int dquot_file_open(struct inode *inode, struct file *file) | |||
2140 | 2140 | ||
2141 | error = generic_file_open(inode, file); | 2141 | error = generic_file_open(inode, file); |
2142 | if (!error && (file->f_mode & FMODE_WRITE)) | 2142 | if (!error && (file->f_mode & FMODE_WRITE)) |
2143 | dquot_initialize(inode); | 2143 | error = dquot_initialize(inode); |
2144 | return error; | 2144 | return error; |
2145 | } | 2145 | } |
2146 | EXPORT_SYMBOL(dquot_file_open); | 2146 | EXPORT_SYMBOL(dquot_file_open); |