lkml.org 
[lkml]   [2017]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] quota: be aware of error from dquot_initialize
On Mon 13-11-17 11:31:48, Chao Yu wrote:
> 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>

Good spotting. I've added the patch to my tree.

Honza

> ---
> fs/quota/dquot.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c
> index 50b0556a124f..80002c094647 100644
> --- a/fs/quota/dquot.c
> +++ b/fs/quota/dquot.c
> @@ -2133,7 +2133,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);
> --
> 2.15.0.55.gc2ece9dc4de6
>
>
--
Jan Kara <jack@suse.com>
SUSE Labs, CR

\
 
 \ /
  Last update: 2017-11-13 10:20    [W:2.645 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site