Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1845
b: refs/heads/master
c: 839d9f9
h: refs/heads/master
i:
  1843: c7a750d
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jun 6, 2005
1 parent 3410ecb commit 2802f70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1be4a0900be5d2c2fd9cd012e3a153e1ea47b96a
refs/heads/master: 839d9f93c9f1623fb37234d464d739617879d97e
9 changes: 4 additions & 5 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,6 @@ static inline int __do_follow_link(struct dentry *dentry, struct nameidata *nd)
static inline int do_follow_link(struct path *path, struct nameidata *nd)
{
int err = -ELOOP;
mntget(path->mnt);
if (current->link_count >= MAX_NESTED_LINKS)
goto loop;
if (current->total_link_count >= 40)
Expand All @@ -539,16 +538,16 @@ static inline int do_follow_link(struct path *path, struct nameidata *nd)
current->link_count++;
current->total_link_count++;
nd->depth++;
mntget(path->mnt);
err = __do_follow_link(path->dentry, nd);
current->link_count--;
nd->depth--;
dput(path->dentry);
mntput(path->mnt);
current->link_count--;
nd->depth--;
return err;
loop:
path_release(nd);
dput(path->dentry);
mntput(path->mnt);
path_release(nd);
return err;
}

Expand Down

0 comments on commit 2802f70

Please sign in to comment.