From 96aa9306d5cc7ebb804ee27f1a920dbd7ef83c17 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 26 Feb 2015 22:17:31 +0100 Subject: [PATCH] kmodloader: initialize module folders in insmod Fixes a segmentation fault in 'insmod' operation mode, due to uninitialized path list. Signed-off-by: Jo-Philipp Wich --- kmodloader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kmodloader.c b/kmodloader.c index b09a323..8f41e74 100644 --- a/kmodloader.c +++ b/kmodloader.c @@ -593,6 +593,8 @@ static int main_insmod(int argc, char **argv) cur += sprintf(cur, "%s", argv[i]); } + init_module_folders(); + if (get_module_path(argv[1])) { name = argv[1]; } else if (!get_module_path(name)) { -- 2.25.1