Merge branch 'akpm' (patches from Andrew)
[linux-2.6-block.git] / fs / eventpoll.c
index 2329f96469e2d719fa074c6486396c32ebce3d90..a5d219d920e755aa7761253c87a1da6470f26782 100644 (file)
@@ -2190,7 +2190,7 @@ static int do_epoll_wait(int epfd, struct epoll_event __user *events,
                return -EINVAL;
 
        /* Verify that the area passed by the user is writeable */
-       if (!access_ok(VERIFY_WRITE, events, maxevents * sizeof(struct epoll_event)))
+       if (!access_ok(events, maxevents * sizeof(struct epoll_event)))
                return -EFAULT;
 
        /* Get the "struct file *" for the eventpoll file */