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-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a62cc10215838286c747f86766063d5f01fcbd6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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;