Page MenuHomeFreeBSD

D12627.diff
No OneTemporary

D12627.diff

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

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)

Event Timeline