mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
ce06e0b21d
commit
7a62cc1021
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue