projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update btrfs instrumentation for 4.10 kernel
[lttng-modules.git]
/
lttng-abi.c
diff --git
a/lttng-abi.c
b/lttng-abi.c
index 4dd9273f1eb9a0551d343dfd7706b0893f45fb2d..397e1de6dd5848a0603a53a26fc264af1e65b3fd 100644
(file)
--- a/
lttng-abi.c
+++ b/
lttng-abi.c
@@
-996,8
+996,11
@@
int lttng_abi_open_metadata_stream(struct file *channel_file)
goto notransport;
}
goto notransport;
}
- if (!lttng_kref_get(&session->metadata_cache->refcount))
+ if (!lttng_kref_get(&session->metadata_cache->refcount)) {
+ ret = -EOVERFLOW;
goto kref_error;
goto kref_error;
+ }
+
ret = lttng_abi_create_stream_fd(channel_file, stream_priv,
<tng_metadata_ring_buffer_file_operations);
if (ret < 0)
ret = lttng_abi_create_stream_fd(channel_file, stream_priv,
<tng_metadata_ring_buffer_file_operations);
if (ret < 0)
This page took
0.02307 seconds
and
4
git commands to generate.