aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/modprobe.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/pending/modprobe.c')
-rw-r--r--toys/pending/modprobe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toys/pending/modprobe.c b/toys/pending/modprobe.c
index 0c0cbc83..cbcfac8f 100644
--- a/toys/pending/modprobe.c
+++ b/toys/pending/modprobe.c
@@ -480,6 +480,7 @@ static int go_probe(struct module_s *m)
continue;
}
// none of above is true insert the module.
+ errno = 0;
rc = ins_mod(fn, options);
if (toys.optflags&FLAG_v)
printf("loaded %s '%s': %s\n", fn, options, strerror(errno));