From: Mathieu Desnoyers Date: Mon, 6 Apr 2015 16:16:11 +0000 (-0400) Subject: Fix: zero memory passed to create channel kernel ioctl X-Git-Tag: v2.6.1~113 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=9123d0a5eee5182c1468c2a5930d1d29104b1f58;p=lttng-tools.git Fix: zero memory passed to create channel kernel ioctl Valgrind complains about uninitialized memory passed to ioctl. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/kernel-ctl/kernel-ctl.c b/src/common/kernel-ctl/kernel-ctl.c index f3ef93d3f..a4c200922 100644 --- a/src/common/kernel-ctl/kernel-ctl.c +++ b/src/common/kernel-ctl/kernel-ctl.c @@ -109,6 +109,7 @@ int kernctl_create_channel(int fd, struct lttng_channel_attr *chops) { struct lttng_kernel_channel channel; + memset(&channel, 0, sizeof(channel)); if (lttng_kernel_use_old_abi) { struct lttng_kernel_old_channel old_channel;