From: Francis Deslauriers Date: Mon, 21 Nov 2016 17:36:00 +0000 (-0500) Subject: Fix: add missing refcount of loaded modules X-Git-Tag: v2.9.0~15 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=95e4e7ab6163ef7dd79c60721da3a1b3b91b30c1;p=lttng-tools.git Fix: add missing refcount of loaded modules Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/modprobe.c b/src/bin/lttng-sessiond/modprobe.c index 05027404e..03545ef41 100644 --- a/src/bin/lttng-sessiond/modprobe.c +++ b/src/bin/lttng-sessiond/modprobe.c @@ -343,7 +343,7 @@ static int modprobe_lttng(struct kern_modules_param *modules, } } else { DBG("Modprobe successfully %s", modules[i].name); - modules[i].loaded; + modules[i].loaded = true; } }