summaryrefslogtreecommitdiffstats
path: root/fs/quota
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-11-13 11:31:48 +0800
committerJan Kara <jack@suse.cz>2017-11-13 10:36:56 +0100
commit88d8ff976abdad043cc37dc1b4f01d93603842d7 (patch)
tree499e3f614b746b1c3197dd3f967c07e82216f655 /fs/quota
parentdd5f6279732e8885061d7455b9d86fdcfdf7f183 (diff)
downloadop-kernel-dev-88d8ff976abdad043cc37dc1b4f01d93603842d7.zip
op-kernel-dev-88d8ff976abdad043cc37dc1b4f01d93603842d7.tar.gz
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>
Diffstat (limited to 'fs/quota')
-rw-r--r--fs/quota/dquot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c
index f683979..f95e099 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)
error = generic_file_open(inode, file);
if (!error && (file->f_mode & FMODE_WRITE))
- dquot_initialize(inode);
+ error = dquot_initialize(inode);
return error;
}
EXPORT_SYMBOL(dquot_file_open);
OpenPOWER on IntegriCloud