diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2013-07-12 12:34:42 +0200 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2013-07-12 12:34:42 +0200 | 
| commit | f2006e27396f55276f24434f56e208d86e7f9908 (patch) | |
| tree | 71896db916d33888b4286f80117d3cac0da40e6d /fs/proc/namespaces.c | |
| parent | e399eb56a6110e13f97e644658648602e2b08de7 (diff) | |
| parent | 9903883f1dd6e86f286b7bfa6e4b423f98c1cd9e (diff) | |
Merge branch 'linus' into timers/urgent
Get upstream changes so we can apply fixes against them
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/proc/namespaces.c')
| -rw-r--r-- | fs/proc/namespaces.c | 13 | 
1 files changed, 6 insertions, 7 deletions
| diff --git a/fs/proc/namespaces.c b/fs/proc/namespaces.c index f6abbbbfad8..49a7fff2e83 100644 --- a/fs/proc/namespaces.c +++ b/fs/proc/namespaces.c @@ -187,13 +187,12 @@ static const struct inode_operations proc_ns_link_inode_operations = {  	.setattr	= proc_setattr,  }; -static struct dentry *proc_ns_instantiate(struct inode *dir, +static int proc_ns_instantiate(struct inode *dir,  	struct dentry *dentry, struct task_struct *task, const void *ptr)  {  	const struct proc_ns_operations *ns_ops = ptr;  	struct inode *inode;  	struct proc_inode *ei; -	struct dentry *error = ERR_PTR(-ENOENT);  	inode = proc_pid_make_inode(dir->i_sb, task);  	if (!inode) @@ -208,9 +207,9 @@ static struct dentry *proc_ns_instantiate(struct inode *dir,  	d_add(dentry, inode);  	/* Close the race of the process dying before we return the dentry */  	if (pid_revalidate(dentry, 0)) -		error = NULL; +		return 0;  out: -	return error; +	return -ENOENT;  }  static int proc_ns_dir_readdir(struct file *file, struct dir_context *ctx) @@ -248,12 +247,12 @@ const struct file_operations proc_ns_dir_operations = {  static struct dentry *proc_ns_dir_lookup(struct inode *dir,  				struct dentry *dentry, unsigned int flags)  { -	struct dentry *error; +	int error;  	struct task_struct *task = get_proc_task(dir);  	const struct proc_ns_operations **entry, **last;  	unsigned int len = dentry->d_name.len; -	error = ERR_PTR(-ENOENT); +	error = -ENOENT;  	if (!task)  		goto out_no_task; @@ -272,7 +271,7 @@ static struct dentry *proc_ns_dir_lookup(struct inode *dir,  out:  	put_task_struct(task);  out_no_task: -	return error; +	return ERR_PTR(error);  }  const struct inode_operations proc_ns_dir_inode_operations = { | 
