projects
/
project
/
ubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17689b6
)
kmodloader: print an error when no kernel module dir can be found
author
Paul Fertser
<fercerpav@gmail.com>
Wed, 18 Dec 2019 16:39:42 +0000
(19:39 +0300)
committer
Hans Dedecker
<dedeckeh@gmail.com>
Sat, 28 Dec 2019 20:05:48 +0000
(21:05 +0100)
Do not just silently fail when kernel modules are nowhere to be
found. This is essential for diagnosing mismatched kernel version
failures.
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
kmodloader.c
patch
|
blob
|
history
diff --git
a/kmodloader.c
b/kmodloader.c
index 07b67009aaf50f4ddd14db0b0a650234a11689ee..b4facb4ee1da31f3113705e1fc961d01749e3eda 100644
(file)
--- a/
kmodloader.c
+++ b/
kmodloader.c
@@
-108,8
+108,10
@@
static int init_module_folders(void)
s = p + 1;
}
- if (!module_folders)
+ if (!module_folders) {
+ ULOG_ERR("no module folders for kernel version %s found\n", ver.release);
return -1;
+ }
module_folders[n] = NULL;
return 0;