diff mbox series

Re: [syzbot] [ocfs2?] KMSAN: uninit-value in _find_next_bit

Message ID 20250326010952.8878-1-richard120310@gmail.com (mailing list archive)
State New
Headers show
Series Re: [syzbot] [ocfs2?] KMSAN: uninit-value in _find_next_bit | expand

Commit Message

I Hsin Cheng March 26, 2025, 1:09 a.m. UTC
---
 fs/ocfs2/quota_local.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/ocfs2/quota_local.c b/fs/ocfs2/quota_local.c
index 2956d888c131..c0bbfdab40ec 100644
--- a/fs/ocfs2/quota_local.c
+++ b/fs/ocfs2/quota_local.c
@@ -302,7 +302,7 @@  static int ocfs2_add_recovery_chunk(struct super_block *sb,
 	if (!rc)
 		return -ENOMEM;
 	rc->rc_chunk = chunk;
-	rc->rc_bitmap = kmalloc(sb->s_blocksize, GFP_NOFS);
+	rc->rc_bitmap = kzalloc(sb->s_blocksize, GFP_NOFS);
 	if (!rc->rc_bitmap) {
 		kfree(rc);
 		return -ENOMEM;