Skip to content

Commit

Permalink
Tomasz Sterna reports that NULL options annoy the syscall,
Browse files Browse the repository at this point in the history
which happens loading dependency modules.
  • Loading branch information
landley committed Oct 9, 2022
1 parent a1f1cfd commit 56d89e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toys/pending/modprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 56d89e5

Please sign in to comment.