Skip to content

Commit 3fdd94a

Browse files
braunergregkh
authored andcommitted
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: 3ad20fe ("binder: implement binderfs") Signed-off-by: Christian Brauner <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent bfeffd1 commit 3fdd94a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

drivers/android/binderfs.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
#define INTSTRLEN 21
4141
#define BINDERFS_MAX_MINOR (1U << MINORBITS)
4242

43-
static struct vfsmount *binderfs_mnt;
44-
4543
static dev_t binderfs_dev;
4644
static DEFINE_MUTEX(binderfs_minors_mutex);
4745
static DEFINE_IDA(binderfs_minors);
@@ -530,14 +528,6 @@ static int __init init_binderfs(void)
530528
return ret;
531529
}
532530

533-
binderfs_mnt = kern_mount(&binder_fs_type);
534-
if (IS_ERR(binderfs_mnt)) {
535-
ret = PTR_ERR(binderfs_mnt);
536-
binderfs_mnt = NULL;
537-
unregister_filesystem(&binder_fs_type);
538-
unregister_chrdev_region(binderfs_dev, BINDERFS_MAX_MINOR);
539-
}
540-
541531
return ret;
542532
}
543533

0 commit comments

Comments
 (0)