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.10.0-rc1~101 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=355d27780f5e58ed9b2e1216e7a3923a28f6d662;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; } }