kernel/module: Panic if search_module is called during gKernelStartup.
The VFS has not been initialized at this point, so we can't use it. Should catch #15865.
This commit is contained in:
parent
12a968998a
commit
0f839b9e8c
@ -624,6 +624,11 @@ search_module(const char* name, module_image** _moduleImage)
|
||||
|
||||
TRACE(("search_module(%s)\n", name));
|
||||
|
||||
if (gKernelStartup) {
|
||||
panic("search_module called during kernel startup! name: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
for (i = kNumModulePaths; i-- > 0;) {
|
||||
if (sDisableUserAddOns && i >= kFirstNonSystemModulePath)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user