Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137424705
D45241.id138712.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
627 B
Referenced Files
None
Subscribers
None
D45241.id138712.diff
View Options
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -1709,11 +1709,7 @@
default:
return (error);
}
- INP_WLOCK(inp);
- if (inp->inp_flags & INP_DROPPED) {
- INP_WUNLOCK(inp);
- return (ECONNRESET);
- }
+ INP_WLOCK_RECHECK(inp);
} else if (sopt->sopt_name == TCP_FUNCTION_BLK) {
/*
* Protect the TCP option TCP_FUNCTION_BLK so
@@ -1728,8 +1724,7 @@
if (error)
return (error);
- INP_WLOCK(inp);
- tp = intotcpcb(inp);
+ INP_WLOCK_RECHECK(inp);
blk = find_and_ref_tcp_functions(&fsn);
if (blk == NULL) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 24, 8:20 AM (1 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26053732
Default Alt Text
D45241.id138712.diff (627 B)
Attached To
Mode
D45241: tcp: improve handling of setsockopt
Attached
Detach File
Event Timeline
Log In to Comment