diff options
author | Christian Brauner <christian@brauner.io> | 2019-01-06 15:05:40 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-08 16:01:53 +0100 |
commit | 3fdd94acd50d607cf6a971455307e711fd8ee16e (patch) | |
tree | d5e0710adab57b0e36fc2eb2ed203a0a78cbdf89 /drivers/android | |
parent | bfeffd155283772bbe78c6a05dec7c0128ee500c (diff) | |
download | linux-rpi-3fdd94acd50d607cf6a971455307e711fd8ee16e.tar.gz linux-rpi-3fdd94acd50d607cf6a971455307e711fd8ee16e.tar.bz2 linux-rpi-3fdd94acd50d607cf6a971455307e711fd8ee16e.zip |
binderfs: remove wrong kern_mount() call
The binderfs filesystem never needs to be mounted by the kernel itself.
This is conceptually wrong and should never have been done in the first
place.
Fixes: 3ad20fe393b ("binder: implement binderfs")
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android')
-rw-r--r-- | drivers/android/binderfs.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/android/binderfs.c b/drivers/android/binderfs.c index 7496b10532aa..6f68d6217eb3 100644 --- a/drivers/android/binderfs.c +++ b/drivers/android/binderfs.c @@ -40,8 +40,6 @@ #define INTSTRLEN 21 #define BINDERFS_MAX_MINOR (1U << MINORBITS) -static struct vfsmount *binderfs_mnt; - static dev_t binderfs_dev; static DEFINE_MUTEX(binderfs_minors_mutex); static DEFINE_IDA(binderfs_minors); @@ -530,14 +528,6 @@ static int __init init_binderfs(void) return ret; } - binderfs_mnt = kern_mount(&binder_fs_type); - if (IS_ERR(binderfs_mnt)) { - ret = PTR_ERR(binderfs_mnt); - binderfs_mnt = NULL; - unregister_filesystem(&binder_fs_type); - unregister_chrdev_region(binderfs_dev, BINDERFS_MAX_MINOR); - } - return ret; } |