Message ID | 1429553588-24764-10-git-send-email-viro@ZenIV.linux.org.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/namei.c b/fs/namei.c index 48b2f17..6e6630c 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1849,7 +1849,9 @@ static int link_path_walk(const char *name, struct nameidata *nd) if (unlikely(IS_ERR(s))) { err = PTR_ERR(s); - break; + nd->link_count--; + nd->depth--; + return err; } err = 0; if (likely(s)) {