Page MenuHomeFreeBSD

D22545.id64887.diff
No OneTemporary

D22545.id64887.diff

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

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)

Event Timeline