commit 691c4ae503f9eb01dde2866c3a15d12a597ff6a1
parent 03a234e7f939dd356cc220ad31fd378d3219d4fe
Author: sin <sin@2f30.org>
Date: Fri, 9 Aug 2013 09:52:17 +0100
If opts is NULL just pass "" as expected by the kernel
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/insmod.c b/insmod.c
@@ -61,7 +61,7 @@ main(int argc, char *argv[])
}
}
- if (syscall(__NR_init_module, buf, blen, opts) < 0)
+ if (syscall(__NR_init_module, buf, blen, !opts ? "" : opts) < 0)
eprintf("init_module:");
free(opts);