summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2012-05-22 20:57:19 +0200
committerRafael J. Wysocki <rjw@sisk.pl>2012-05-22 20:57:19 +0200
commit8714c8d74d313c3ba27bf9c2aaacb1ad71c644f8 (patch)
treefa41917de975bf7079e39277a03e0a50bf893441 /fs
parent0033c154a907885c647bc7929fe4bc6bc3b23743 (diff)
parenta8159414d7e3af7233e7a5a82d1c5d85379bd75c (diff)
downloadlinux-8714c8d74d313c3ba27bf9c2aaacb1ad71c644f8.tar.bz2
Merge branch 'pm-sleep'
* pm-sleep: epoll: Fix user space breakage related to EPOLLWAKEUP
Diffstat (limited to 'fs')
-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,
/* 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