X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-abi.c;h=9845930d9ebc87bd7e86f0c0bd06eb95317d66da;hb=ada2ea9b1894647b0104476c9b47b288950217d4;hp=b51434a17a9e28aee7de71f24437511f31e3bb55;hpb=675f8988f3e11be1da90a769633b1dab0d3d4929;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index b51434a1..9845930d 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -993,6 +993,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