aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/ubox/patches/100-insmod-segfault.patch
blob: df010d1a66ebc8e369dcbe32d7aa589bb1f78ce3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/kmodloader.c
+++ b/kmodloader.c
@@ -605,6 +605,9 @@ static int main_insmod(int argc, char **
 		cur += sprintf(cur, "%s", argv[i]);
 	}
 
+	if (init_module_folders())
+		return -1;
+
 	if (get_module_path(argv[1])) {
 		name = argv[1];
 	} else if (!get_module_path(name)) {