Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201883
b: refs/heads/master
c: b8bc83a
h: refs/heads/master
i:
  201881: 70c357e
  201879: 894ceb5
v: v3
  • Loading branch information
Tvrtko Ursulin authored and James Morris committed Aug 2, 2010
1 parent af5853d commit 439ba7e
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: 57a62c2317d60b21b7761c319a733a894482a6af
refs/heads/master: b8bc83ab4dcbc9938b95a90bbb50d89d1904d5ab
4 changes: 3 additions & 1 deletion trunk/security/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static int mknod(struct inode *dir, struct dentry *dentry,
int mode, dev_t dev)
{
struct inode *inode;
int error = -EPERM;
int error = -ENOMEM;

if (dentry->d_inode)
return -EEXIST;
Expand Down Expand Up @@ -166,6 +166,8 @@ static int create_by_name(const char *name, mode_t mode,
error = mkdir(parent->d_inode, *dentry, mode);
else
error = create(parent->d_inode, *dentry, mode);
if (error)
dput(*dentry);
} else
error = PTR_ERR(*dentry);
mutex_unlock(&parent->d_inode->i_mutex);
Expand Down

0 comments on commit 439ba7e

Please sign in to comment.