All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] erofs-utils: zero directory writer buffer
@ 2026-09-29 13:39 Garv
  2026-09-29 13:42 ` Gao Xiang
  0 siblings, 1 reply; 4+ messages in thread
From: Garv @ 2026-09-29 13:39 UTC (permalink / raw)
  To: linux-erofs; +Cc: Garv

Signed-off-by: Garv <garvkumar1502@gmail.com>
---
 lib/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/inode.c b/lib/inode.c
index ec96556..e7d07e0 100644
--- a/lib/inode.c
+++ b/lib/inode.c
@@ -597,7 +597,7 @@ static struct erofs_vfile *erofs_dirwriter_open(struct erofs_inode *dir)
 {
 	struct erofs_dirwriter_vf *dwv;
 
-	dwv = malloc(sizeof(*dwv) + erofs_blksiz(dir->sbi));
+	dwv = calloc(1, sizeof(*dwv) + erofs_blksiz(dir->sbi));
 	if (!dwv)
 		return ERR_PTR(-ENOMEM);
 	dwv->vf.ops = &erofs_dirwriter_vfops;
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-29 18:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-29 13:39 [PATCH] erofs-utils: zero directory writer buffer Garv
2026-09-29 13:42 ` Gao Xiang
2026-09-29 18:19   ` Garv Kumar
2026-09-29 18:19   ` Garv Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.