We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ea24b2 commit 5ae6f33Copy full SHA for 5ae6f33
fs/bcachefs/journal.c
@@ -1510,7 +1510,7 @@ int bch2_dev_journal_init(struct bch_dev *ca, struct bch_sb *sb)
1510
unsigned nr_bvecs = DIV_ROUND_UP(JOURNAL_ENTRY_SIZE_MAX, PAGE_SIZE);
1511
1512
for (unsigned i = 0; i < ARRAY_SIZE(ja->bio); i++) {
1513
- ja->bio[i] = kmalloc(struct_size(ja->bio[i], bio.bi_inline_vecs,
+ ja->bio[i] = kzalloc(struct_size(ja->bio[i], bio.bi_inline_vecs,
1514
nr_bvecs), GFP_KERNEL);
1515
if (!ja->bio[i])
1516
return -BCH_ERR_ENOMEM_dev_journal_init;
0 commit comments