Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253703
b: refs/heads/master
c: 50338b8
h: refs/heads/master
i:
  253701: 36fb4ed
  253699: da2fe2a
  253695: 34ce681
v: v3
  • Loading branch information
Török Edwin authored and Al Viro committed Jun 16, 2011
1 parent da71910 commit 790ca16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: a685e08987d1edf1995b76511d4c98ea0e905377
refs/heads/master: 50338b889dc504c69e0cb316ac92d1b9e51f3c8a
4 changes: 3 additions & 1 deletion trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -2713,8 +2713,10 @@ static long do_unlinkat(int dfd, const char __user *pathname)
error = PTR_ERR(dentry);
if (!IS_ERR(dentry)) {
/* Why not before? Because we want correct error value */
if (nd.last.name[nd.last.len])
goto slashes;
inode = dentry->d_inode;
if (nd.last.name[nd.last.len] || !inode)
if (!inode)
goto slashes;
ihold(inode);
error = mnt_want_write(nd.path.mnt);
Expand Down

0 comments on commit 790ca16

Please sign in to comment.