diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 538d81530a87..29bdbe1fb6e8 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1865,8 +1865,7 @@ SYSCALL_DEFINE4(epoll_ctl, int, epfd, int, op, int, fd, goto error_tgt_fput; /* Check if EPOLLWAKEUP is allowed */ - if (ep_op_has_event(op)) - ep_take_care_of_epollwakeup(&epds); + epds.events &= ~EPOLLWAKEUP; /* * We have to check that the file structure underneath the file descriptor