]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/proc/base.c
proc: add and remove /proc entry create checks
[karo-tx-linux.git] / fs / proc / base.c
index 79df9ff71afdfec224e86c925a5dab65aa025229..11375216b493b7ac69f3d994c8b9990e0e138c8a 100644 (file)
@@ -2785,7 +2785,7 @@ struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, unsign
        unsigned tgid;
        struct pid_namespace *ns;
 
-       tgid = name_to_int(dentry);
+       tgid = name_to_int(&dentry->d_name);
        if (tgid == ~0U)
                goto out;
 
@@ -3033,7 +3033,7 @@ static struct dentry *proc_task_lookup(struct inode *dir, struct dentry * dentry
        if (!leader)
                goto out_no_task;
 
-       tid = name_to_int(dentry);
+       tid = name_to_int(&dentry->d_name);
        if (tid == ~0U)
                goto out;