Page MenuHomeFreeBSD

D11373.diff
No OneTemporary

D11373.diff

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

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)

Event Timeline