projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd54591
)
fs/squashfs: sqfs_read_inode_table: fix dangling pointer
author
Richard Genoud
<richard.genoud@posteo.net>
Tue, 3 Nov 2020 11:11:07 +0000
(12:11 +0100)
committer
Tom Rini
<trini@konsulko.com>
Thu, 19 Nov 2020 14:45:49 +0000
(09:45 -0500)
inode_table should not be left dangling as it may be freed in sqfs_opendir
Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
fs/squashfs/sqfs.c
patch
|
blob
|
history
diff --git
a/fs/squashfs/sqfs.c
b/fs/squashfs/sqfs.c
index
1714306
..
72181f3
100644
(file)
--- 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;
}