]> git.dujemihanovic.xyz Git - u-boot.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)
commit53ba2c21c2df142b37bb2f0d6850d79dcfd8976f
treeadafa04657a5367bb73f686f5fdd0c3a90711180
parentf6c0d365d3e8ee8e4fd3ebe2ed957c2bca9d3328
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