]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs/squashfs: NULL dereference in sqfs_closedir()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 1 Feb 2021 02:28:48 +0000 (03:28 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 24 Feb 2021 21:51:48 +0000 (16:51 -0500)
commit220fa478fb1a84e51235b92506ff5d48415f0a8e
treeb234a6019677e43688fbb115403cba2730da4c70
parentda7991b38e1f6d9b172a72650286be2558dc447f
fs/squashfs: NULL dereference in sqfs_closedir()

sqfs_opendir() called in sqfs_size(), sqfs_read(), sqfs_exists() may fail
leading to sqfs_closedir(NULL) being called. Do not dereference NULL.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
fs/squashfs/sqfs.c