summaryrefslogtreecommitdiffstats
path: root/drivers/android
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2019-01-16 10:42:59 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-18 14:14:14 +0100
commit7e7ca7744a539f1a172e3b81c29d000787e3d774 (patch)
tree545160bf690a309ac5041f67e145f3029c65db09 /drivers/android
parentf7ee8ead151f9d0b8dac6ab6c3ff49bbe809c564 (diff)
downloadlinux-7e7ca7744a539f1a172e3b81c29d000787e3d774.tar.gz
linux-7e7ca7744a539f1a172e3b81c29d000787e3d774.tar.bz2
linux-7e7ca7744a539f1a172e3b81c29d000787e3d774.zip
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@huawei.com> Reviewed-by: Christian Brauner <christian@brauner.io> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android')
-rw-r--r--drivers/android/binderfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/android/binderfs.c b/drivers/android/binderfs.c
index 9518e2e7da05..e4ff4c3fa371 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;