}
if (!poll_max_size) {
- ERR("poll_max_size not initialized yet");
- goto error;
+ if (lttng_poll_set_max_size()) {
+ goto error;
+ }
}
/* Don't bust the limit here */
ERR("Wrong arguments in compat_epoll_wait");
goto error;
}
- assert(events->nb_fd >= 0);
if (events->nb_fd == 0) {
errno = EINVAL;