From 56d89e51ba9e57c2e9731c82399686cdb941c3d2 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 9 Oct 2022 01:54:00 -0500 Subject: [PATCH] Tomasz Sterna reports that NULL options annoy the syscall, which happens loading dependency modules. --- toys/pending/modprobe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/pending/modprobe.c b/toys/pending/modprobe.c index 45f8ea21..1c4b7fe6 100644 --- a/toys/pending/modprobe.c +++ b/toys/pending/modprobe.c @@ -444,7 +444,7 @@ static void go_probe(struct module_s *m) } // none of above is true insert the module. errno = 0; - rc = ins_mod(fn, options); + rc = ins_mod(fn, options ? : ""); if (FLAG(v)) printf("loaded %s '%s': %s\n", fn, options, strerror(errno)); if (errno == EEXIST) rc = 0; -- 2.39.2