Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150655609
D12627.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
444 B
Referenced Files
None
Subscribers
None
D12627.diff
View Options
Index: head/sys/kern/subr_blist.c
===================================================================
--- head/sys/kern/subr_blist.c
+++ head/sys/kern/subr_blist.c
@@ -248,7 +248,8 @@
nodes += last_block + 1;
last_block /= BLIST_META_RADIX;
}
- bl = malloc(offsetof(struct blist, bl_root[nodes]), M_SWAP, flags);
+ bl = malloc(offsetof(struct blist, bl_root[nodes]), M_SWAP, flags |
+ M_ZERO);
if (bl == NULL)
return (NULL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 3:36 AM (2 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30795909
Default Alt Text
D12627.diff (444 B)
Attached To
Mode
D12627: clear allocated blist struct
Attached
Detach File
Event Timeline
Log In to Comment