Skip to content
Commit 7962c7d1 authored by Al Viro's avatar Al Viro
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 06422964
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment