diff options
Diffstat (limited to 'fs/seq_file.c')
-rw-r--r-- | fs/seq_file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/seq_file.c b/fs/seq_file.c index 8d862907f060..853770274f20 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c | |||
@@ -346,8 +346,7 @@ int seq_path(struct seq_file *m, struct path *path, char *esc) | |||
346 | { | 346 | { |
347 | if (m->count < m->size) { | 347 | if (m->count < m->size) { |
348 | char *s = m->buf + m->count; | 348 | char *s = m->buf + m->count; |
349 | char *p = d_path(path->dentry, path->mnt, s, | 349 | char *p = d_path(path, s, m->size - m->count); |
350 | m->size - m->count); | ||
351 | if (!IS_ERR(p)) { | 350 | if (!IS_ERR(p)) { |
352 | while (s <= p) { | 351 | while (s <= p) { |
353 | char c = *p++; | 352 | char c = *p++; |