Page MenuHomeFreeBSD

D33229.diff
No OneTemporary

D33229.diff

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

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)

Event Timeline