Skip to content
Commit 6920a440 authored by Al Viro's avatar Al Viro
Browse files

namei: simplify failure exits in get_link()



when cookie is NULL, put_link() is equivalent to path_put(), so
as soon as we'd set last->cookie to NULL, we can bump nd->depth and
let the normal logics in terminate_walk() to take care of cleanups.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 6e77137b
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