diff options
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 47338d92db51..88f8edf18258 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -1185,7 +1185,7 @@ static int do_proc_readlink(struct path *path, char __user *buffer, int buflen) | |||
1185 | if (!tmp) | 1185 | if (!tmp) |
1186 | return -ENOMEM; | 1186 | return -ENOMEM; |
1187 | 1187 | ||
1188 | pathname = d_path(path->dentry, path->mnt, tmp, PAGE_SIZE); | 1188 | pathname = d_path(path, tmp, PAGE_SIZE); |
1189 | len = PTR_ERR(pathname); | 1189 | len = PTR_ERR(pathname); |
1190 | if (IS_ERR(pathname)) | 1190 | if (IS_ERR(pathname)) |
1191 | goto out; | 1191 | goto out; |