From 5a12931eca4ae292cc659222d5da12b9b7480808 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 24 Jun 2019 15:08:36 -0400 Subject: [PATCH] Docs: misleading documentation of compat_epoll_create MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The documentation of compat_epoll_create explicitly mentions that it can't fail because of a memory allocation error. This is false as the function allocates an array of struct epoll_event. Signed-off-by: Jérémie Galarneau --- src/common/compat/poll.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h index d7020f366..4b2fc5036 100644 --- a/src/common/compat/poll.h +++ b/src/common/compat/poll.h @@ -119,9 +119,7 @@ static inline int __lttng_epoll_get_prev_fd(struct lttng_poll_event *events, #define LTTNG_POLL_GET_PREV_FD(e, i, nb_fd) \ __lttng_epoll_get_prev_fd(LTTNG_REF(e), i, nb_fd) -/* - * Create the epoll set. No memory allocation is done here. - */ +/* Create the epoll set. */ extern int compat_epoll_create(struct lttng_poll_event *events, int size, int flags); #define lttng_poll_create(events, size, flags) \ -- 2.34.1