diff options
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/base.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 3bd5ac1ff018..2772208338f8 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -1438,8 +1438,7 @@ static void *proc_pid_follow_link(struct dentry *dentry, struct nameidata *nd) | |||
1438 | if (error) | 1438 | if (error) |
1439 | goto out; | 1439 | goto out; |
1440 | 1440 | ||
1441 | path_put(&nd->path); | 1441 | nd_jump_link(nd, &path); |
1442 | nd->path = path; | ||
1443 | return NULL; | 1442 | return NULL; |
1444 | out: | 1443 | out: |
1445 | return ERR_PTR(error); | 1444 | return ERR_PTR(error); |