]> asedeno.scripts.mit.edu Git - linux.git/commit
binderfs: fix error return code in binderfs_fill_super()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 16 Jan 2019 10:42:59 +0000 (10:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2019 13:14:14 +0000 (14:14 +0100)
commit7e7ca7744a539f1a172e3b81c29d000787e3d774
tree545160bf690a309ac5041f67e145f3029c65db09
parentf7ee8ead151f9d0b8dac6ab6c3ff49bbe809c564
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>
drivers/android/binderfs.c