X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Feventpoll.c;h=bd056a5b4efc59ceccb8b121100d40e2bb16cf3f;hb=744595c847cefd6ac0eec8f66e9fba95687c3f4f;hp=366c503f9657376e969b590cf182da5939dcb1ca;hpb=8fa79e08f50f4ec1fd8903eca6fd6f36c36dd4c4;p=karo-tx-linux.git diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 366c503f9657..bd056a5b4efc 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1206,7 +1206,7 @@ SYSCALL_DEFINE1(epoll_create1, int, flags) * a file structure and a free file descriptor. */ error = anon_inode_getfd("[eventpoll]", &eventpoll_fops, ep, - flags & O_CLOEXEC); + O_RDWR | (flags & O_CLOEXEC)); if (error < 0) ep_free(ep);