]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs/squashfs: fix sqfs_read_sblk()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 10 May 2022 19:53:25 +0000 (21:53 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 6 Jun 2022 21:47:17 +0000 (17:47 -0400)
commit84378d5c86d1b8e7afd2132e2c8d79d8e7e1f7d9
tree34ef2872914679f5c2c7831b5980a11d14a0b756
parent89ab1e28173b7b23504ecd39e618fc73bbfd0371
fs/squashfs: fix sqfs_read_sblk()

Setting sblk = NULL has no effect on the caller.
We want to set *sblk = NULL if an error occurrs to avoid usage after free.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
fs/squashfs/sqfs.c