]> git.baikalelectronics.ru Git - uboot.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)
commit2e0d8783c542f6f2c612e66563cf2e427712088d
tree34ef2872914679f5c2c7831b5980a11d14a0b756
parent1ba937aa6be53d8f481852b7a28353eec276b8d8
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