1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 04:44:58 +00:00

Ext2FS: Fix hole in Ext2FSInode::directory_entry_count() locking.

This commit is contained in:
Andreas Kling 2019-02-27 17:07:34 +01:00
parent 60d0a48be5
commit d7d6deaa5c

View file

@ -1324,8 +1324,8 @@ void Ext2FS::uncache_inode(InodeIndex index)
size_t Ext2FSInode::directory_entry_count() const
{
ASSERT(is_directory());
populate_lookup_cache();
LOCKER(m_lock);
populate_lookup_cache();
return m_lookup_cache.size();
}