aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2012-05-22 14:57:19 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2012-05-22 14:57:19 -0400
commit8714c8d74d313c3ba27bf9c2aaacb1ad71c644f8 (patch)
treefa41917de975bf7079e39277a03e0a50bf893441
parent0033c154a907885c647bc7929fe4bc6bc3b23743 (diff)
parenta8159414d7e3af7233e7a5a82d1c5d85379bd75c (diff)
Merge branch 'pm-sleep'
* pm-sleep: epoll: Fix user space breakage related to EPOLLWAKEUP
-rw-r--r--fs/eventpoll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/eventpoll.c b/fs/eventpoll.c
index 2cf0f2153be5..079d1be65ba9 100644
--- a/fs/eventpoll.c
+++ b/fs/eventpoll.c
@@ -1711,7 +1711,7 @@ SYSCALL_DEFINE4(epoll_ctl, int, epfd, int, op, int, fd,
1711 1711
1712 /* Check if EPOLLWAKEUP is allowed */ 1712 /* Check if EPOLLWAKEUP is allowed */
1713 if ((epds.events & EPOLLWAKEUP) && !capable(CAP_EPOLLWAKEUP)) 1713 if ((epds.events & EPOLLWAKEUP) && !capable(CAP_EPOLLWAKEUP))
1714 goto error_tgt_fput; 1714 epds.events &= ~EPOLLWAKEUP;
1715 1715
1716 /* 1716 /*
1717 * We have to check that the file structure underneath the file descriptor 1717 * We have to check that the file structure underneath the file descriptor