Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tetsuo Handa and committed by
Al Viro
7a62cc10 ce06e0b2

+1
+1
fs/seq_file.c
··· 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;