Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107798237
D33229.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
562 B
Referenced Files
None
Subscribers
None
D33229.diff
View Options
diff --git a/sys/netinet/cc/cc.c b/sys/netinet/cc/cc.c
--- a/sys/netinet/cc/cc.c
+++ b/sys/netinet/cc/cc.c
@@ -246,14 +246,13 @@
STAILQ_FOREACH_SAFE(funcs, &cc_list, entries, tmpfuncs) {
if (funcs == remove_cc) {
if (cc_check_default(remove_cc)) {
- err = EBUSY;
- break;
+ CC_LIST_WUNLOCK();
+ return(EBUSY);
}
- /* Add a temp flag to stop new adds to it */
- funcs->flags |= CC_MODULE_BEING_REMOVED;
break;
}
}
+ remove_cc->flags |= CC_MODULE_BEING_REMOVED;
CC_LIST_WUNLOCK();
err = tcp_ccalgounload(remove_cc);
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 6:58 AM (20 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15931095
Default Alt Text
D33229.diff (562 B)
Attached To
Mode
D33229: tcp: unloading a module that is set to default should error.
Attached
Detach File
Event Timeline
Log In to Comment