Page MenuHomeFreeBSD

D42527.diff
No OneTemporary

D42527.diff

diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c
--- a/sys/kern/kern_linker.c
+++ b/sys/kern/kern_linker.c
@@ -1280,6 +1280,8 @@
printf("kldunload: attempt to unload file that was"
" loaded by the kernel\n");
error = EBUSY;
+ } else if (lf->refs > 1) {
+ error = EBUSY;
} else {
lf->userrefs--;
error = linker_file_unload(lf, flags);

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 9:44 PM (21 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14540191
Default Alt Text
D42527.diff (377 B)

Event Timeline