mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
Kernel: Always initialize ext2_inode and ext_super_block structs
Found by PVS Studio Static Analysis
This commit is contained in:
parent
b8e210deea
commit
0348d9afbe
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ private:
|
||||||
|
|
||||||
mutable Vector<BlockBasedFileSystem::BlockIndex> m_block_list;
|
mutable Vector<BlockBasedFileSystem::BlockIndex> m_block_list;
|
||||||
mutable HashMap<String, InodeIndex> m_lookup_cache;
|
mutable HashMap<String, InodeIndex> m_lookup_cache;
|
||||||
ext2_inode m_raw_inode;
|
ext2_inode m_raw_inode {};
|
||||||
};
|
};
|
||||||
|
|
||||||
class Ext2FS final : public BlockBasedFileSystem {
|
class Ext2FS final : public BlockBasedFileSystem {
|
||||||
|
@ -159,7 +159,7 @@ private:
|
||||||
|
|
||||||
u64 m_block_group_count { 0 };
|
u64 m_block_group_count { 0 };
|
||||||
|
|
||||||
mutable ext2_super_block m_super_block;
|
mutable ext2_super_block m_super_block {};
|
||||||
mutable OwnPtr<KBuffer> m_cached_group_descriptor_table;
|
mutable OwnPtr<KBuffer> m_cached_group_descriptor_table;
|
||||||
|
|
||||||
mutable HashMap<InodeIndex, RefPtr<Ext2FSInode>> m_inode_cache;
|
mutable HashMap<InodeIndex, RefPtr<Ext2FSInode>> m_inode_cache;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue