From: Darrick J. Wong Date: Tue, 2 Jun 2026 04:58:50 +0000 (-0700) Subject: xfs_healer: initialize variable here X-Git-Tag: v7.1.0~72 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=44849c72c720a0ddd749e7cfda53989515855aa0;p=xfsprogs-dev.git xfs_healer: initialize variable here Initialize the event prefix to zeroes so that we don't read bogus stack data if the filesystem doesn't support parent pointers. Found by Codex. Cc: linux-xfs@vger.kernel.org # v7.0.0 Fixes: 17d840245c0e20 ("xfs_healer: use getparents to look up file names") Signed-off-by: "Darrick J. Wong" Reviewed-by: Christoph Hellwig --- diff --git a/healer/fsrepair.c b/healer/fsrepair.c index 3f9bd39d..7ad513b2 100644 --- a/healer/fsrepair.c +++ b/healer/fsrepair.c @@ -203,7 +203,7 @@ try_repair_inode( {0, 0}, }; #undef X - struct hme_prefix new_pfx; + struct hme_prefix new_pfx = { }; const struct hme_prefix *pfx = orig_pfx; const struct u32_scrub *f;