Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56388
b: refs/heads/master
c: f0ee9aa
h: refs/heads/master
v: v3
  • Loading branch information
Davide Libenzi authored and Linus Torvalds committed May 15, 2007
1 parent c87266a commit c740e4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 67647d0fb8bc03609d045a9cce85f7ef6d763036
refs/heads/master: f0ee9aabb0520adea5937855a9575c08a97b16e7
7 changes: 2 additions & 5 deletions trunk/fs/eventpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,18 +469,16 @@ static void ep_free(struct eventpoll *ep)
}

mutex_unlock(&epmutex);

mutex_destroy(&ep->mtx);
kfree(ep);
}

static int ep_eventpoll_release(struct inode *inode, struct file *file)
{
struct eventpoll *ep = file->private_data;

if (ep) {
if (ep)
ep_free(ep);
kfree(ep);
}

DNPRINTK(3, (KERN_INFO "[%p] eventpoll: close() ep=%p\n", current, ep));
return 0;
Expand Down Expand Up @@ -1107,7 +1105,6 @@ asmlinkage long sys_epoll_create(int size)

error_free:
ep_free(ep);
kfree(ep);
error_return:
DNPRINTK(3, (KERN_INFO "[%p] eventpoll: sys_epoll_create(%d) = %d\n",
current, size, error));
Expand Down

0 comments on commit c740e4f

Please sign in to comment.