projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc8965a
)
fs/ntfs3: Fix using uninitialized value n when calling indx_read
author
Yan Lei
<chinayanlei2002@163.com>
Sun, 10 Apr 2022 06:09:00 +0000
(09:09 +0300)
committer
Konstantin Komarov
<almaz.alexandrovich@paragon-software.com>
Thu, 9 Jun 2022 16:16:08 +0000
(19:16 +0300)
This value is checked in indx_read, so it must be initialized
Fixes:
82cae269cfa9
("fs/ntfs3: Add initialization of super block")
Signed-off-by: Yan Lei <chinayanlei2002@163.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/index.c
patch
|
blob
|
history
diff --git
a/fs/ntfs3/index.c
b/fs/ntfs3/index.c
index
8468cca
..
84ccc14
100644
(file)
--- a/
fs/ntfs3/index.c
+++ b/
fs/ntfs3/index.c
@@
-1987,7
+1987,7
@@
static int indx_free_children(struct ntfs_index *indx, struct ntfs_inode *ni,
const struct NTFS_DE *e, bool trim)
{
int err;
- struct indx_node *n;
+ struct indx_node *n
= NULL
;
struct INDEX_HDR *hdr;
CLST vbn = de_get_vbn(e);
size_t i;