Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309959
b: refs/heads/master
c: 7e936b7
h: refs/heads/master
i:
  309957: 1e35c46
  309955: 1a3fe9a
  309951: 57ddf73
v: v3
  • Loading branch information
Andreas Dilger authored and Theodore Ts'o committed May 28, 2012
1 parent 639fb1d commit f717ce6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 967ac8af4475ce45474800709b12137aa7634c77
refs/heads/master: 7e936b737211e6b54e34b71a827e56b872e958d8
6 changes: 6 additions & 0 deletions trunk/fs/ext4/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,12 @@ static struct dentry *ext4_lookup(struct inode *dir, struct dentry *dentry, stru
EXT4_ERROR_INODE(dir, "bad inode number: %u", ino);
return ERR_PTR(-EIO);
}
if (unlikely(ino == dir->i_ino)) {
EXT4_ERROR_INODE(dir, "'%.*s' linked to parent dir",
dentry->d_name.len,
dentry->d_name.name);
return ERR_PTR(-EIO);
}
inode = ext4_iget(dir->i_sb, ino);
if (inode == ERR_PTR(-ESTALE)) {
EXT4_ERROR_INODE(dir,
Expand Down

0 comments on commit f717ce6

Please sign in to comment.