Message ID | 1412888588-26755-51-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/fs/eventpoll.c b/fs/eventpoll.c index ead0046..f50d79e 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1852,7 +1852,8 @@ SYSCALL_DEFINE4(epoll_ctl, int, epfd, int, op, int, fd, goto error_tgt_fput; /* Check if EPOLLWAKEUP is allowed */ - ep_take_care_of_epollwakeup(&epds); + if (ep_op_has_event(op)) + ep_take_care_of_epollwakeup(&epds); /* * We have to check that the file structure underneath the file descriptor