Commit 7a62cc10215838286c747f86766063d5f01fcbd6

Authored by Tetsuo Handa
Committed by Al Viro
1 parent ce06e0b21d

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -470,6 +470,7 @@
470 470 m->count = s - m->buf;
471 471 return 0;
472 472 }
  473 + err = -ENAMETOOLONG;
473 474 }
474 475 }
475 476 m->count = m->size;