Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110074210
D24568.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
502 B
Referenced Files
None
Subscribers
None
D24568.diff
View Options
Index: head/sys/kern/uipc_socket.c
===================================================================
--- head/sys/kern/uipc_socket.c
+++ head/sys/kern/uipc_socket.c
@@ -1557,8 +1557,10 @@
#endif
if (uio != NULL)
resid = uio->uio_resid;
- else
+ else if ((top->m_flags & M_PKTHDR) != 0)
resid = top->m_pkthdr.len;
+ else
+ resid = m_length(top, NULL);
/*
* In theory resid should be unsigned. However, space must be
* signed, as it might be less than 0 if we over-committed, and we
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 14, 7:28 AM (19 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16639269
Default Alt Text
D24568.diff (502 B)
Attached To
Mode
D24568: fix sosend_generic() so that it can handle a list of ext_pgs mbufs post r359919
Attached
Detach File
Event Timeline
Log In to Comment