diff options
Diffstat (limited to 'fs/eventpoll.c')
-rw-r--r-- | fs/eventpoll.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/eventpoll.c b/fs/eventpoll.c index db4365f8a75c..c806a0c4383c 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c | |||
@@ -1054,8 +1054,10 @@ static int ep_send_events_proc(struct eventpoll *ep, struct list_head *head, | |||
1054 | */ | 1054 | */ |
1055 | if (revents) { | 1055 | if (revents) { |
1056 | if (__put_user(revents, &uevent->events) || | 1056 | if (__put_user(revents, &uevent->events) || |
1057 | __put_user(epi->event.data, &uevent->data)) | 1057 | __put_user(epi->event.data, &uevent->data)) { |
1058 | list_add(&epi->rdllink, head); | ||
1058 | return eventcnt ? eventcnt : -EFAULT; | 1059 | return eventcnt ? eventcnt : -EFAULT; |
1060 | } | ||
1059 | eventcnt++; | 1061 | eventcnt++; |
1060 | uevent++; | 1062 | uevent++; |
1061 | if (epi->event.events & EPOLLONESHOT) | 1063 | if (epi->event.events & EPOLLONESHOT) |