From: Tetsuo Handa Date: Fri, 18 Sep 2009 20:05:59 +0000 (-0700) Subject: seq_file: return a negative error code when seq_path_root() fails. X-Git-Tag: v2.6.32-rc1~58^2~13 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=7a62cc10215838286c747f86766063d5f01fcbd6;p=linux-block.git 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 Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Al Viro --- 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;