]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs/squashfs: sqfs_close/sqfs_read_sblk: set ctxt.sblk to NULL after free
authorRichard Genoud <richard.genoud@posteo.net>
Tue, 24 Nov 2020 17:07:52 +0000 (18:07 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 2 Dec 2020 21:21:58 +0000 (16:21 -0500)
commit7e932ac790b3615a67a3c24041c194aa748c0d98
treeb19f4be0f32a13d02338a078a1c70e6004248e1c
parentab31883ae7e54ded8396b13a9057f861bf916ea4
fs/squashfs: sqfs_close/sqfs_read_sblk: set ctxt.sblk to NULL after free

This will prevent a double free error if sqfs_close() is called twice.

Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
fs/squashfs/sqfs.c