diff options
author | Richard Genoud <richard.genoud@posteo.net> | 2020-11-03 12:11:07 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-11-19 09:45:49 -0500 |
commit | 4c83d2755776d4dd5e15a930d48db1082fc0d1cc (patch) | |
tree | df9c9734c43f13e3619370f3f606b31cf75ec7de | |
parent | cd54591afd42c547f43a7d509862f20e09264cde (diff) | |
download | u-boot-4c83d2755776d4dd5e15a930d48db1082fc0d1cc.zip u-boot-4c83d2755776d4dd5e15a930d48db1082fc0d1cc.tar.gz u-boot-4c83d2755776d4dd5e15a930d48db1082fc0d1cc.tar.bz2 |
fs/squashfs: sqfs_read_inode_table: fix dangling pointer
inode_table should not be left dangling as it may be freed in sqfs_opendir
Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
-rw-r--r-- | fs/squashfs/sqfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index 1714306..72181f3 100644 --- a/fs/squashfs/sqfs.c +++ b/fs/squashfs/sqfs.c @@ -731,6 +731,7 @@ static int sqfs_read_inode_table(unsigned char **inode_table) src_table, src_len); if (ret) { free(*inode_table); + *inode_table = NULL; goto free_itb; } |