Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169932560
D21825.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D21825.id.diff
View Options
Index: head/sys/netinet/tcp_stacks/rack.c
===================================================================
--- head/sys/netinet/tcp_stacks/rack.c
+++ head/sys/netinet/tcp_stacks/rack.c
@@ -10261,10 +10261,10 @@
break;
case TCP_RACK_TLP_INC_VAR:
/* Does TLP include rtt variance in t-o */
- return (EINVAL);
+ error = EINVAL;
break;
case TCP_RACK_IDLE_REDUCE_HIGH:
- return (EINVAL);
+ error = EINVAL;
break;
case TCP_DELACK:
if (optval == 0)
@@ -10329,6 +10329,7 @@
* add a option that is not a int, then this will have quite an
* impact to this routine.
*/
+ error = 0;
switch (sopt->sopt_name) {
case TCP_RACK_DO_DETECTION:
optval = rack->do_detection;
@@ -10398,10 +10399,10 @@
break;
case TCP_RACK_TLP_INC_VAR:
/* Does TLP include rtt variance in t-o */
- return (EINVAL);
+ error = EINVAL;
break;
case TCP_RACK_IDLE_REDUCE_HIGH:
- return (EINVAL);
+ error = EINVAL;
break;
case TCP_RACK_MIN_PACE:
optval = rack->r_enforce_min_pace;
@@ -10423,7 +10424,9 @@
break;
}
INP_WUNLOCK(inp);
- error = sooptcopyout(sopt, &optval, sizeof optval);
+ if (error == 0) {
+ error = sooptcopyout(sopt, &optval, sizeof optval);
+ }
return (error);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Sep 4, 12:35 AM (9 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38175329
Default Alt Text
D21825.id.diff (1 KB)
Attached To
Mode
D21825: Fix locking for some RACK specific socket options
Attached
Detach File
Event Timeline
Log In to Comment