Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140106132
D24125.id69689.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
840 B
Referenced Files
None
Subscribers
None
D24125.id69689.diff
View Options
Index: sys/netinet6/ip6_output.c
===================================================================
--- sys/netinet6/ip6_output.c
+++ sys/netinet6/ip6_output.c
@@ -1694,8 +1694,10 @@
error = soopt_mcopyin(sopt, m); /* XXX */
if (error != 0)
break;
- error = ip6_pcbopts(&inp->in6p_outputopts,
- m, so, sopt);
+ INP_WLOCK(inp);
+ error = ip6_pcbopts(&inp->in6p_outputopts, m,
+ so, sopt);
+ INP_WUNLOCK(inp);
m_freem(m); /* XXX */
break;
}
@@ -2458,8 +2460,11 @@
printf("ip6_pcbopts: all specified options are cleared.\n");
#endif
ip6_clearpktopts(opt, -1);
- } else
- opt = malloc(sizeof(*opt), M_IP6OPT, M_WAITOK);
+ } else {
+ opt = malloc(sizeof(*opt), M_IP6OPT, M_NOWAIT);
+ if (opt == NULL)
+ return (ENOMEM);
+ }
*pktopt = NULL;
if (!m || m->m_len == 0) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 21, 7:39 AM (10 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27109650
Default Alt Text
D24125.id69689.diff (840 B)
Attached To
Mode
D24125: Fix synchronization in the IPV6_2292PKTOPTIONS set handler.
Attached
Detach File
Event Timeline
Log In to Comment