Revert "Fix: don't perform extra flush on metadata channel"
[lttng-modules.git] / lttng-abi.c
index 87465189060edd4122cc9f8c5ad87c3fe218b6f1..fc72e29bb0096f34756852f4beead6b02a051dbc 100644 (file)
@@ -972,8 +972,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,
                        &lttng_metadata_ring_buffer_file_operations);
        if (ret < 0)
This page took 0.023169 seconds and 4 git commands to generate.