Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108928179
D41224.id125321.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
609 B
Referenced Files
None
Subscribers
None
D41224.id125321.diff
View Options
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -1852,7 +1852,7 @@
if (error != 0)
goto bad;
- if (outlen + LINUX_CMSG_LEN(datalen) > maxlen) {
+ if (outlen + LINUX_CMSG_SPACE(datalen) > maxlen) {
if (outlen == 0) {
error = EMSGSIZE;
goto err;
@@ -1871,7 +1871,7 @@
error = copyout(data, outbuf, datalen);
if (error == 0) {
outbuf += LINUX_CMSG_ALIGN(datalen);
- outlen += LINUX_CMSG_LEN(datalen);
+ outlen += LINUX_CMSG_SPACE(datalen);
}
}
err:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 30, 4:25 PM (3 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16337747
Default Alt Text
D41224.id125321.diff (609 B)
Attached To
Mode
D41224: linux(4): Fix control message size calculation
Attached
Detach File
Event Timeline
Log In to Comment