Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102122584
D42527.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
377 B
Referenced Files
None
Subscribers
None
D42527.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D42527: kern linker: Do not try to unload module if it has dependants
Attached
Detach File
Event Timeline
Log In to Comment