projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Perf support: fix warnings
[lttng-modules.git]
/
lttng-context-perf-counters.c
diff --git
a/lttng-context-perf-counters.c
b/lttng-context-perf-counters.c
index ede510ecc16c726dfe76688518a1c57aa1fe816e..20d49d580760b8c4ed8cd15ce239bb6c2d77b17b 100644
(file)
--- a/
lttng-context-perf-counters.c
+++ b/
lttng-context-perf-counters.c
@@
-107,13
+107,15
@@
int lttng_add_perf_counter_to_ctx(uint32_t type,
cpu, NULL, overflow_callback);
if (!events[cpu]) {
ret = -EINVAL;
cpu, NULL, overflow_callback);
if (!events[cpu]) {
ret = -EINVAL;
- goto error;
+ goto
name_alloc_
error;
}
}
name_alloc = kstrdup(name, GFP_KERNEL);
}
}
name_alloc = kstrdup(name, GFP_KERNEL);
- if (!name_alloc)
+ if (!name_alloc) {
+ ret = -ENOMEM;
goto name_alloc_error;
goto name_alloc_error;
+ }
field = lttng_append_context(ctx);
if (!field) {
field = lttng_append_context(ctx);
if (!field) {
This page took
0.023752 seconds
and
4
git commands to generate.