aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2015-06-05 15:03:51 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2015-06-05 15:03:51 +1000
commit0f02676c9ba40dc9f176da4eba3c3a99e30cf041 (patch)
treeed9d9989380bb0cd91825560ffd3f0bef88f6da0
parent7a3b2ffc6c2c35879ebef9cb4ba9e14c4a951ccc (diff)
downloadlinux-next-0f02676c9ba40dc9f176da4eba3c3a99e30cf041.tar.gz
devpts-if-initialization-failed-dont-crash-when-opening-dev-ptmx-fix
remove unneeded static Cc: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--fs/devpts/inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c
index a4328e7bf6497d..c35ffdc12bbafd 100644
--- a/fs/devpts/inode.c
+++ b/fs/devpts/inode.c
@@ -689,7 +689,8 @@ static int __init init_devpts_fs(void)
struct ctl_table_header *table;
if (!err) {
- static struct vfsmount *mnt;
+ struct vfsmount *mnt;
+
table = register_sysctl_table(pty_root_table);
mnt = kern_mount(&devpts_fs_type);
if (IS_ERR(mnt)) {