Skip to content

Commit

Permalink
Merge branch 'pm-sleep'
Browse files Browse the repository at this point in the history
* pm-sleep:
  epoll: Fix user space breakage related to EPOLLWAKEUP
  • Loading branch information
Rafael J. Wysocki committed May 22, 2012
2 parents 0033c15 + a815941 commit 8714c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/eventpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,7 @@ SYSCALL_DEFINE4(epoll_ctl, int, epfd, int, op, int, fd,

/* Check if EPOLLWAKEUP is allowed */
if ((epds.events & EPOLLWAKEUP) && !capable(CAP_EPOLLWAKEUP))
goto error_tgt_fput;
epds.events &= ~EPOLLWAKEUP;

/*
* We have to check that the file structure underneath the file descriptor
Expand Down

0 comments on commit 8714c8d

Please sign in to comment.