Skip to content

Commit 5ae6f33

Browse files
author
Kent Overstreet
committed
bcachefs: zero init journal bios
fix a kmsan splat Signed-off-by: Kent Overstreet <[email protected]>
1 parent 9ea24b2 commit 5ae6f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/journal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ int bch2_dev_journal_init(struct bch_dev *ca, struct bch_sb *sb)
15101510
unsigned nr_bvecs = DIV_ROUND_UP(JOURNAL_ENTRY_SIZE_MAX, PAGE_SIZE);
15111511

15121512
for (unsigned i = 0; i < ARRAY_SIZE(ja->bio); i++) {
1513-
ja->bio[i] = kmalloc(struct_size(ja->bio[i], bio.bi_inline_vecs,
1513+
ja->bio[i] = kzalloc(struct_size(ja->bio[i], bio.bi_inline_vecs,
15141514
nr_bvecs), GFP_KERNEL);
15151515
if (!ja->bio[i])
15161516
return -BCH_ERR_ENOMEM_dev_journal_init;

0 commit comments

Comments
 (0)