Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112048008
D22545.id64887.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
679 B
Referenced Files
None
Subscribers
None
D22545.id64887.diff
View Options
Index: head/sys/kern/kern_linker.c
===================================================================
--- head/sys/kern/kern_linker.c
+++ head/sys/kern/kern_linker.c
@@ -2079,14 +2079,16 @@
*/
KASSERT(verinfo == NULL, ("linker_load_module: verinfo"
" is not NULL"));
+ if (rootvnode == NULL)
+ return (ENXIO);
pathname = linker_search_kld(kldname);
} else {
if (modlist_lookup2(modname, verinfo) != NULL)
return (EEXIST);
+ if (rootvnode == NULL)
+ return (ENXIO);
if (kldname != NULL)
pathname = strdup(kldname, M_LINKER);
- else if (rootvnode == NULL)
- pathname = NULL;
else
/*
* Need to find a KLD with required module
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 13, 2:14 AM (9 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17128769
Default Alt Text
D22545.id64887.diff (679 B)
Attached To
Mode
D22545: Fix panic when loading kernel modules before root file system is mounted
Attached
Detach File
Event Timeline
Log In to Comment