|
@@ -2432,7 +2432,7 @@ static struct dentry *proc_base_instantiate(struct inode *dir,
|
|
|
const struct pid_entry *p = ptr;
|
|
|
struct inode *inode;
|
|
|
struct proc_inode *ei;
|
|
|
- struct dentry *error = ERR_PTR(-EINVAL);
|
|
|
+ struct dentry *error;
|
|
|
|
|
|
/* Allocate the inode */
|
|
|
error = ERR_PTR(-ENOMEM);
|
|
@@ -2782,7 +2782,7 @@ out:
|
|
|
|
|
|
struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, struct nameidata *nd)
|
|
|
{
|
|
|
- struct dentry *result = ERR_PTR(-ENOENT);
|
|
|
+ struct dentry *result;
|
|
|
struct task_struct *task;
|
|
|
unsigned tgid;
|
|
|
struct pid_namespace *ns;
|