diff --git a/kernel/src/fs/tmpfs/Inode.cpp b/kernel/src/fs/tmpfs/Inode.cpp index 0299ea7b..252054fa 100644 --- a/kernel/src/fs/tmpfs/Inode.cpp +++ b/kernel/src/fs/tmpfs/Inode.cpp @@ -138,6 +138,8 @@ namespace TmpFS { u64 shmid = TRY(SharedMemory::create(m_data_buffer.data() + offset, offset, count)); m_shmid = shmid; + auto* shm = g_shared_memory_map.try_get_ref(shmid); + shm->inode = SharedPtr { (VFS::Inode*)this }; return shmid; }