diff options
author | Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp> | 2009-09-18 22:05:59 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-09-24 13:47:29 +0200 |
commit | 7a62cc10215838286c747f86766063d5f01fcbd6 (patch) | |
tree | 57a1cd4c0441885201a2d6bac59f9ec5cba0325e /fs/seq_file.c | |
parent | vfs: optimize touch_time() too (diff) | |
download | linux-7a62cc10215838286c747f86766063d5f01fcbd6.tar.xz linux-7a62cc10215838286c747f86766063d5f01fcbd6.zip |
seq_file: return a negative error code when seq_path_root() fails.
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: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/seq_file.c')
-rw-r--r-- | fs/seq_file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/seq_file.c b/fs/seq_file.c index 6c959275f2d0..66efd0aa8fb3 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c @@ -470,6 +470,7 @@ int seq_path_root(struct seq_file *m, struct path *path, struct path *root, m->count = s - m->buf; return 0; } + err = -ENAMETOOLONG; } } m->count = m->size; |