Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23520
b: refs/heads/master
c: 4af4c52
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Drokin authored and Linus Torvalds committed Mar 25, 2006
1 parent 85c3b4d commit e38b25e
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: 8d8c85117fbcbaea7718870ad4b1ddd12940d9b0
refs/heads/master: 4af4c52f34606bdaab6930a845550c6fb02078a4
6 changes: 6 additions & 0 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1628,6 +1628,12 @@ int open_namei(int dfd, const char *pathname, int flag,
goto exit;
}

if (IS_ERR(nd->intent.open.file)) {
mutex_unlock(&dir->d_inode->i_mutex);
error = PTR_ERR(nd->intent.open.file);
goto exit_dput;
}

/* Negative dentry, just create the file */
if (!path.dentry->d_inode) {
if (!IS_POSIXACL(dir->d_inode))
Expand Down

0 comments on commit e38b25e

Please sign in to comment.