Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190105
b: refs/heads/master
c: b338cc8
h: refs/heads/master
i:
  190103: 08e902e
v: v3
  • Loading branch information
Dan Carpenter authored and James Morris committed Apr 22, 2010
1 parent 586e936 commit e3524d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: e134d200d57d43b171dcb0b55c178a1a0c7db14a
refs/heads/master: b338cc8207eae46640a8d534738fda7b5e48511d
4 changes: 2 additions & 2 deletions trunk/security/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,13 @@ static int create_by_name(const char *name, mode_t mode,

mutex_lock(&parent->d_inode->i_mutex);
*dentry = lookup_one_len(name, parent, strlen(name));
if (!IS_ERR(dentry)) {
if (!IS_ERR(*dentry)) {
if ((mode & S_IFMT) == S_IFDIR)
error = mkdir(parent->d_inode, *dentry, mode);
else
error = create(parent->d_inode, *dentry, mode);
} else
error = PTR_ERR(dentry);
error = PTR_ERR(*dentry);
mutex_unlock(&parent->d_inode->i_mutex);

return error;
Expand Down

0 comments on commit e3524d9

Please sign in to comment.