Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107184873
D11373.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
376 B
Referenced Files
None
Subscribers
None
D11373.diff
View Options
Index: head/sys/kern/uipc_mbuf.c
===================================================================
--- head/sys/kern/uipc_mbuf.c
+++ head/sys/kern/uipc_mbuf.c
@@ -1517,7 +1517,7 @@
* the total data supplied by the uio.
*/
if (len > 0)
- total = min(uio->uio_resid, len);
+ total = (uio->uio_resid < len) ? uio->uio_resid : len;
else
total = uio->uio_resid;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 9:09 AM (18 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15765212
Default Alt Text
D11373.diff (376 B)
Attached To
Mode
D11373: Fix one more place uio_resid is truncated to int
Attached
Detach File
Event Timeline
Log In to Comment