Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01408afb authored by Wei Yongjun's avatar Wei Yongjun Committed by Hridya Valsaraju
Browse files

UPSTREAM: 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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarChristian Brauner <christian@brauner.io>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 136497735
(cherry picked from commit 7e7ca7744a539f1a172e3b81c29d000787e3d774)
Change-Id: If9d120c4abdbc0d5528c85d2515a9d5e40addfdc
Signed-off-by: default avatarHridya Valsaraju <hridya@google.com>
parent 2e2d87cd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;