projects
/
project
/
ubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix bogus kmodloader warning
[project/ubox.git]
/
kmodloader.c
diff --git
a/kmodloader.c
b/kmodloader.c
index 11af0ae7c313023a039c765c64dfeb269c8fb98b..784021588c87ebd1a9b1f292814ee90a907722eb 100644
(file)
--- a/
kmodloader.c
+++ b/
kmodloader.c
@@
-526,6
+526,11
@@
static int main_insmod(int argc, char **argv)
cur += sprintf(cur, "%s", argv[i]);
}
+ if (!get_module_path(name)) {
+ fprintf(stderr, "Failed to find %s. Maybe it is a built in module ?\n", name);
+ return -1;
+ }
+
ret = insert_module(get_module_path(name), options);
free(options);