Skip to content

Commit

Permalink
quota: be aware of error from dquot_initialize
Browse files Browse the repository at this point in the history
Commit 6184fc0 ("quota: Propagate error from ->acquire_dquot()")
missed to handle error from dquot_initialize in dquot_file_open, fix it.

Signed-off-by: Chao Yu <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
  • Loading branch information
chaseyu authored and jankara committed Nov 13, 2017
1 parent dd5f627 commit 88d8ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/quota/dquot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 88d8ff9

Please sign in to comment.