X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=lttng-abi.c;h=c14cc82b2baca8aa6e2012a6f46d8079fa58f2ec;hb=0d2c717fd11a41a578a4370516605066f4371b89;hp=e046520e5f2a34357dbbffed484afc2ca978da9d;hpb=6b206adaeba16d3bddbfd980d2ebdfc96211765c;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index e046520e..c14cc82b 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -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