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

fix bogus path_put() of nd->root after some unlazy_walk() failures



Failure to grab reference to parent dentry should go through the
same cleanup as nd->seq mismatch.  As it is, we might end up with
caller thinking it needs to path_put() nd->root, with obvious
nasty results once we'd hit that bug enough times to drive the
refcount of root dentry all the way to zero...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 2e7babfa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment