Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207509
b: refs/heads/master
c: 2562495
h: refs/heads/master
i:
  207507: f47be26
v: v3
  • Loading branch information
Al Viro committed Aug 9, 2010
1 parent b372fc0 commit acc1e4b
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 0e4f6a791b1e8cfde75a74e2f885642ecb3fe9d8
refs/heads/master: 256249584bda1a9357e2d29987a37f5b2df035f6
5 changes: 4 additions & 1 deletion trunk/fs/logfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,11 @@ static int __logfs_create(struct inode *dir, struct dentry *dentry,
int ret;

ta = kzalloc(sizeof(*ta), GFP_KERNEL);
if (!ta)
if (!ta) {
inode->i_nlink--;
iput(inode);
return -ENOMEM;
}

ta->state = CREATE_1;
ta->ino = inode->i_ino;
Expand Down

0 comments on commit acc1e4b

Please sign in to comment.