X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-abi.c;h=c14cc82b2baca8aa6e2012a6f46d8079fa58f2ec;hb=f22697caff66036a134afa017980999caf02f938;hp=54988b79d0821da9ef71d02f845c2345b1ea730f;hpb=9c1f4643eb4a11d451a979d81389f0c2ff666af2;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index 54988b79..c14cc82b 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -44,18 +44,18 @@ #include #include #include -#include "wrapper/vmalloc.h" /* for wrapper_vmalloc_sync_all() */ -#include "wrapper/ringbuffer/vfs.h" -#include "wrapper/ringbuffer/backend.h" -#include "wrapper/ringbuffer/frontend.h" -#include "wrapper/poll.h" -#include "wrapper/file.h" -#include "wrapper/kref.h" -#include "lttng-abi.h" -#include "lttng-abi-old.h" -#include "lttng-events.h" -#include "lttng-tracer.h" -#include "lib/ringbuffer/frontend_types.h" +#include /* for wrapper_vmalloc_sync_all() */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include /* * This is LTTng's own personal way to create a system call as an external @@ -1017,6 +1017,7 @@ int lttng_abi_create_event(struct file *channel_file, /* The event holds a reference on the channel */ if (atomic_long_add_unless(&channel_file->f_count, 1, INT_MAX) == INT_MAX) { + ret = -EOVERFLOW; goto refcount_error; } if (event_param->instrumentation == LTTNG_KERNEL_TRACEPOINT