Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329000
b: refs/heads/master
c: 5e196a9
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Sep 27, 2012
1 parent 1a0ac2f commit 9a0dd7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: ecd188159efa112770d5f8a4a62f8d3586784f48
refs/heads/master: 5e196a9cf557dbc2bf808824c6c4998150e18d06
6 changes: 3 additions & 3 deletions trunk/fs/eventpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ SYSCALL_DEFINE4(epoll_ctl, int, epfd, int, op, int, fd,
SYSCALL_DEFINE4(epoll_wait, int, epfd, struct epoll_event __user *, events,
int, maxevents, int, timeout)
{
int error;
int error, fput_needed;
struct file *file;
struct eventpoll *ep;

Expand All @@ -1825,7 +1825,7 @@ SYSCALL_DEFINE4(epoll_wait, int, epfd, struct epoll_event __user *, events,

/* Get the "struct file *" for the eventpoll file */
error = -EBADF;
file = fget(epfd);
file = fget_light(epfd, &fput_needed);
if (!file)
goto error_return;

Expand All @@ -1847,7 +1847,7 @@ SYSCALL_DEFINE4(epoll_wait, int, epfd, struct epoll_event __user *, events,
error = ep_poll(ep, events, maxevents, timeout);

error_fput:
fput(file);
fput_light(file, fput_needed);
error_return:

return error;
Expand Down

0 comments on commit 9a0dd7b

Please sign in to comment.