mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
nd->inode is not set on the second attempt in path_walk()
We leave it at whatever it had been pointing to after the first link_path_walk() had failed with -ESTALE. Things do not work well after that... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
dfef6dcd35
commit
b306419ae0
@ -1546,6 +1546,7 @@ static int path_walk(const char *name, struct nameidata *nd)
|
||||
/* nd->path had been dropped */
|
||||
current->total_link_count = 0;
|
||||
nd->path = save;
|
||||
nd->inode = save.dentry->d_inode;
|
||||
path_get(&nd->path);
|
||||
nd->flags |= LOOKUP_REVAL;
|
||||
result = link_path_walk(name, nd);
|
||||
|
Loading…
Reference in New Issue
Block a user