diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-04-03 22:49:44 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2021-04-07 19:57:17 +0200 |
commit | 7962c7d196e36aa597fadb78c1cb4fe7e209f803 (patch) | |
tree | 84f59052df80a9436d7dc018ad8c3017f6df2ea3 /fs/coredump.c | |
parent | teach set_nameidata() to handle setting the root as well (diff) | |
download | linux-7962c7d196e36aa597fadb78c1cb4fe7e209f803.tar.xz linux-7962c7d196e36aa597fadb78c1cb4fe7e209f803.zip |
namei: make sure nd->depth is always valid
Zero it in set_nameidata() rather than in path_init(). That way
it always matches the number of valid nd->stack[] entries.
Since terminate_walk() does zero it (after having emptied the
stack), we don't need to reinitialize it in subsequent path_init().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/coredump.c')
0 files changed, 0 insertions, 0 deletions