[OpenWrt-Devel] [PATCH] [ubox] kmodloader: increase module name length

Sergiy Kibrik sakib at darkstar.site
Mon Feb 18 08:04:16 EST 2019


Otherwise modules with long names, e.g. lttng (>32 chars) can't be loaded.

Signed-off-by: Sergiy Kibrik <sakib at darkstar.site>
---
 kmodloader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kmodloader.c b/kmodloader.c
index 3196deb..67e3706 100644
--- a/kmodloader.c
+++ b/kmodloader.c
@@ -157,7 +157,7 @@ static char* get_module_path(char *name)
 
 static char* get_module_name(char *path)
 {
-	static char name[33];
+	static char name[NAME_MAX];
 	char *t;
 
 	strncpy(name, basename(path), sizeof(name) - 1);
-- 
2.7.4


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list