From: Jo-Philipp Wich Date: Thu, 26 Feb 2015 21:17:31 +0000 (+0100) Subject: kmodloader: initialize module folders in insmod X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=96aa9306d5cc7ebb804ee27f1a920dbd7ef83c17;p=oweals%2Fubox.git 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 --- 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)) {