]> git.baikalelectronics.ru Git - uboot.git/commit
fs/squashfs: zero out unused fields in fs_dirent
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 17 May 2021 06:21:39 +0000 (08:21 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 26 May 2021 21:26:07 +0000 (17:26 -0400)
commitf29b66ff3b11c926d95b9657b287e3fa1a1e3c24
treeadafa04657a5367bb73f686f5fdd0c3a90711180
parentc6f7b289c420a3672ee7613620db5984fa75147d
fs/squashfs: zero out unused fields in fs_dirent

When reading directories the UEFI sub-system must supply file attributes
and timestamps. These fields will have to be added to struct fs_dirent.
SquashFS should not fill these fields with random data. Ensure that they
are zeroed out.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
fs/squashfs/sqfs.c