diff options
-rw-r--r-- | Kernel/Memory/PageDirectory.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Kernel/Memory/PageDirectory.cpp b/Kernel/Memory/PageDirectory.cpp index dda93a48db..c54b95d3c7 100644 --- a/Kernel/Memory/PageDirectory.cpp +++ b/Kernel/Memory/PageDirectory.cpp @@ -151,8 +151,7 @@ UNMAP_AFTER_INIT void PageDirectory::allocate_kernel_directory() PageDirectory::~PageDirectory() { SpinlockLocker lock(s_mm_lock); - if (m_space) - cr3_map().remove(cr3()); + cr3_map().remove(cr3()); } } |