[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6AADFAC011213A4C87B956458587ADB402067D91@dggeml512-mbx.china.huawei.com>
Date: Wed, 16 Jan 2019 10:34:57 +0000
From: "weiyongjun (A)" <weiyongjun1@...wei.com>
To: "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"arve@...roid.com" <arve@...roid.com>,
"tkjos@...roid.com" <tkjos@...roid.com>,
"maco@...roid.com" <maco@...roid.com>,
"joel@...lfernandes.org" <joel@...lfernandes.org>,
"christian@...uner.io" <christian@...uner.io>
CC: "devel@...verdev.osuosl.org" <devel@...verdev.osuosl.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"kernel-janitors@...r.kernel.org" <kernel-janitors@...r.kernel.org>
Subject: RE: [PATCH v3] binderfs: fix error return code in
binderfs_fill_super()
Sorry, please ignore this patch, missing reviewed-by line, I will send a new version.
> -----Original Message-----
> From: weiyongjun (A)
> Sent: Wednesday, January 16, 2019 6:39 PM
> To: gregkh@...uxfoundation.org; arve@...roid.com; tkjos@...roid.com;
> maco@...roid.com; joel@...lfernandes.org; christian@...uner.io
> Cc: weiyongjun (A) <weiyongjun1@...wei.com>;
> devel@...verdev.osuosl.org; linux-kernel@...r.kernel.org; kernel-
> janitors@...r.kernel.org
> Subject: [PATCH v3] binderfs: fix error return code in binderfs_fill_super()
>
> Fix to return a negative error code -ENOMEM from the new_inode() and
> d_make_root() error handling cases instead of 0, as done elsewhere in
> this function.
>
> Fixes: 849d540ddfcd ("binderfs: implement "max" mount option")
> Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
> ---
> v1 -> v2: move 'ret = -ENOMEM' out of if
> v2 -> v3: use correct fixes commit
> ---
> drivers/android/binderfs.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/android/binderfs.c b/drivers/android/binderfs.c
> index 9518e2e..e4ff4c3 100644
> --- a/drivers/android/binderfs.c
> +++ b/drivers/android/binderfs.c
> @@ -518,6 +518,7 @@ static int binderfs_fill_super(struct super_block *sb,
> void *data, int silent)
>
> sb->s_fs_info = info;
>
> + ret = -ENOMEM;
> inode = new_inode(sb);
> if (!inode)
> goto err_without_dentry;
>
>
Powered by blists - more mailing lists