Commit a9ad9a61 authored by Tetsuo Handa's avatar Tetsuo Handa Committed by James Toy

seq_path_root() is returning a return value of successful __d_path()

instead of returning a negative value when mangle_path() failed.

This is not a bug so far because nobody is using return value of
seq_path_root().
Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 32beacbc
...@@ -470,6 +470,7 @@ int seq_path_root(struct seq_file *m, struct path *path, struct path *root, ...@@ -470,6 +470,7 @@ int seq_path_root(struct seq_file *m, struct path *path, struct path *root,
m->count = s - m->buf; m->count = s - m->buf;
return 0; return 0;
} }
err = -ENAMETOOLONG;
} }
} }
m->count = m->size; m->count = m->size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment