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.8.3~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b98ed3e5068bd2b5c9c99f6c9847cc81d330c84e;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 347829d5d..b64a0dc83 100644 --- a/src/bin/lttng-sessiond/modprobe.c +++ b/src/bin/lttng-sessiond/modprobe.c @@ -342,7 +342,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; } }