Re: [PATCH 1/1] fs/squashfs: fix sqfs_read_sblk()

2022-06-07 Thread Tom Rini
On Tue, May 10, 2022 at 09:53:25PM +0200, Heinrich Schuchardt wrote: > 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 Applied to u-boot/next, thanks! -- Tom signature.asc De

[PATCH 1/1] fs/squashfs: fix sqfs_read_sblk()

2022-05-10 Thread Heinrich Schuchardt
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 --- fs/squashfs/sqfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index