diff options
| author | 2014-11-19 21:32:12 +1100 | |
|---|---|---|
| committer | 2014-11-19 21:32:12 +1100 | |
| commit | b10778a00d40b3d9fdaaf5891e802794781ff71c (patch) | |
| tree | 6ba4cbac86eecedc3f30650e7f764ecf00c83898 /fs/proc/root.c | |
| parent | integrity: do zero padding of the key id (diff) | |
| parent | Linux 3.17 (diff) | |
| download | wireguard-linux-b10778a00d40b3d9fdaaf5891e802794781ff71c.tar.xz wireguard-linux-b10778a00d40b3d9fdaaf5891e802794781ff71c.zip | |
Merge commit 'v3.17' into next
Diffstat (limited to '')
| -rw-r--r-- | fs/proc/root.c | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/fs/proc/root.c b/fs/proc/root.c index 5dbadecb234d..094e44d4a6be 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c @@ -149,6 +149,8 @@ static void proc_kill_sb(struct super_block *sb)  	ns = (struct pid_namespace *)sb->s_fs_info;  	if (ns->proc_self)  		dput(ns->proc_self); +	if (ns->proc_thread_self) +		dput(ns->proc_thread_self);  	kill_anon_super(sb);  	put_pid_ns(ns);  } @@ -170,6 +172,7 @@ void __init proc_root_init(void)  		return;  	proc_self_init(); +	proc_thread_self_init();  	proc_symlink("mounts", NULL, "self/mounts");  	proc_net_init(); @@ -199,10 +202,10 @@ static int proc_root_getattr(struct vfsmount *mnt, struct dentry *dentry, struct  static struct dentry *proc_root_lookup(struct inode * dir, struct dentry * dentry, unsigned int flags)  { -	if (!proc_lookup(dir, dentry, flags)) +	if (!proc_pid_lookup(dir, dentry, flags))  		return NULL; -	return proc_pid_lookup(dir, dentry, flags); +	return proc_lookup(dir, dentry, flags);  }  static int proc_root_readdir(struct file *file, struct dir_context *ctx) | 
