Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109885827
D35318.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
910 B
Referenced Files
None
Subscribers
None
D35318.diff
View Options
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -2041,13 +2041,7 @@
*/
newlen = newfds * sizeof(int);
*controlp = sbcreatecontrol(NULL, newlen,
- SCM_RIGHTS, SOL_SOCKET, M_NOWAIT);
- if (*controlp == NULL) {
- FILEDESC_XUNLOCK(fdesc);
- error = E2BIG;
- unp_freerights(fdep, newfds);
- goto next;
- }
+ SCM_RIGHTS, SOL_SOCKET, M_WAITOK);
fdp = (int *)
CMSG_DATA(mtod(*controlp, struct cmsghdr *));
@@ -2079,11 +2073,7 @@
if (error || controlp == NULL)
goto next;
*controlp = sbcreatecontrol(NULL, datalen,
- cm->cmsg_type, cm->cmsg_level, M_NOWAIT);
- if (*controlp == NULL) {
- error = ENOBUFS;
- goto next;
- }
+ cm->cmsg_type, cm->cmsg_level, M_WAITOK);
bcopy(data,
CMSG_DATA(mtod(*controlp, struct cmsghdr *)),
datalen);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 11, 6:50 PM (14 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16599471
Default Alt Text
D35318.diff (910 B)
Attached To
Mode
D35318: unix: unp_externalize() can M_WAITOK
Attached
Detach File
Event Timeline
Log In to Comment