X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-abi.c;h=478a5912f89a0ebee71185885119bd3d85e1aff1;hb=715b31b70672fdf2606d7fc7d5d59a4c005d0c6b;hp=e193f4377734d1a47a8d881125de8d93befe0cc3;hpb=7520b63c90941201fda988cba4abc10e9cc7735b;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index e193f437..478a5912 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -998,8 +998,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)