Skip to content

Commit ac573b2

Browse files
idkwhoiam322DhineshCool
authored andcommitted
fs: eventpoll: prevent all wakeups by eventpoll
1 parent d5bcf71 commit ac573b2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fs/eventpoll.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,8 +1888,7 @@ SYSCALL_DEFINE4(epoll_ctl, int, epfd, int, op, int, fd,
18881888
goto error_tgt_fput;
18891889

18901890
/* Check if EPOLLWAKEUP is allowed */
1891-
if (ep_op_has_event(op))
1892-
ep_take_care_of_epollwakeup(&epds);
1891+
epds.events &= ~EPOLLWAKEUP;
18931892

18941893
/*
18951894
* We have to check that the file structure underneath the file descriptor

0 commit comments

Comments
 (0)