From 1c2a9c1cbe9d18bf342edfa617eff319c1d3ce3a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 28 May 2014 23:28:28 +0200 Subject: [PATCH] kmodloader: force size argument for syscall to unsigned long to fix issues with musl Signed-off-by: Felix Fietkau --- kmodloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmodloader.c b/kmodloader.c index 770484b..633570f 100644 --- a/kmodloader.c +++ b/kmodloader.c @@ -420,7 +420,7 @@ static int insert_module(char *path, const char *options) data = malloc(s.st_size); if (read(fd, data, s.st_size) == s.st_size) - ret = syscall(__NR_init_module, data, s.st_size, options); + ret = syscall(__NR_init_module, data, (unsigned long) s.st_size, options); else LOG("failed to read full module %s\n", path); -- 2.11.0