X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=lttng-abi.c;h=397e1de6dd5848a0603a53a26fc264af1e65b3fd;hb=2807f24b7a978300a546d02c7cc033f93a26b264;hp=4dd9273f1eb9a0551d343dfd7706b0893f45fb2d;hpb=3dc33675410da9f13647d70e8b3e152f480f81b1;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index 4dd9273f..397e1de6 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -996,8 +996,11 @@ int lttng_abi_open_metadata_stream(struct file *channel_file) goto notransport; } - if (!lttng_kref_get(&session->metadata_cache->refcount)) + if (!lttng_kref_get(&session->metadata_cache->refcount)) { + ret = -EOVERFLOW; goto kref_error; + } + ret = lttng_abi_create_stream_fd(channel_file, stream_priv, <tng_metadata_ring_buffer_file_operations); if (ret < 0)