Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157266417
D30759.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
493 B
Referenced Files
None
Subscribers
None
D30759.diff
View Options
diff --git a/sys/netgraph/ng_bridge.c b/sys/netgraph/ng_bridge.c
--- a/sys/netgraph/ng_bridge.c
+++ b/sys/netgraph/ng_bridge.c
@@ -395,9 +395,7 @@
if(NG_PEER_NODE(hook) == node)
return (ELOOP);
- link = malloc(sizeof(*link), M_NETGRAPH_BRIDGE, M_ZERO);
- if (link == NULL)
- return (ENOMEM);
+ link = malloc(sizeof(*link), M_NETGRAPH_BRIDGE, M_WAITOK | M_ZERO);
link->stats.recvOctets = counter_u64_alloc(M_WAITOK);
link->stats.recvPackets = counter_u64_alloc(M_WAITOK);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, May 20, 9:12 PM (8 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33356926
Default Alt Text
D30759.diff (493 B)
Attached To
Mode
D30759: netgraph/bridge: malloc without flags
Attached
Detach File
Event Timeline
Log In to Comment