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:
e466256
)
fs/squashfs: sqfs_read_inode_table: fix dangling pointer
71/250871/1
author
Richard Genoud
<richard.genoud@posteo.net>
Tue, 3 Nov 2020 11:11:07 +0000
(12:11 +0100)
committer
Jaehoon Chung
<jh80.chung@samsung.com>
Tue, 5 Jan 2021 07:06:47 +0000
(16:06 +0900)
inode_table should not be left dangling as it may be freed in sqfs_opendir
Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
[jh80.chung: cherry picked from mainline commit
4c83d2755776d4dd5e15a930d48db1082fc0d1cc
]
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I0d63396f7885f68140e78623df8e06b8b00049ac
fs/squashfs/sqfs.c
patch
|
blob
|
history
diff --git
a/fs/squashfs/sqfs.c
b/fs/squashfs/sqfs.c
index 6e7140212cfae7f572a333716e3072bd7c76a293..620a6adaed8f38b585e3ee472bbb3e84cf046b72 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;
}