projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Zero out callback pointers in consumer process
[lttng-ust.git]
/
liblttng-ust-ctl
/
ustctl.c
diff --git
a/liblttng-ust-ctl/ustctl.c
b/liblttng-ust-ctl/ustctl.c
index 2d915260c8c522a2ac919b58a1222d48ec0c072c..cd80faec38270b94c662f4ea24fff5fd8d6b5e20 100644
(file)
--- a/
liblttng-ust-ctl/ustctl.c
+++ b/
liblttng-ust-ctl/ustctl.c
@@
-449,6
+449,12
@@
struct lttng_ust_shm_handle *ustctl_map_channel(struct lttng_ust_object_data *ch
return NULL;
}
memcpy(handle->shadow_chan, chan, chan_size);
return NULL;
}
memcpy(handle->shadow_chan, chan, chan_size);
+ /*
+ * The callback pointers in the producer are invalid in the
+ * consumer. Zero them out.
+ */
+ memset(&handle->shadow_chan->backend.config.cb, 0,
+ sizeof(handle->shadow_chan->backend.config.cb));
return handle;
}
return handle;
}
This page took
0.024023 seconds
and
4
git commands to generate.