diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-12-26 22:02:24 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-12-26 22:02:24 +0100 |
commit | 3f3535213b8b8acbe1c372b14b743bf9a1c40d71 (patch) | |
tree | 4009a5e638c8504f7a9ebf3e27a7f2d85a7b4159 /Kernel/Process.cpp | |
parent | f6179ad9f9ba0277fe5f0767cb0985388bf1ee20 (diff) | |
download | serenity-3f3535213b8b8acbe1c372b14b743bf9a1c40d71.zip |
Fix some issues uncovered by the spawn stress test.
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r-- | Kernel/Process.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 3d7cc43521..d904cf2d68 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -690,7 +690,8 @@ Process::~Process() ProcFS::the().remove_process(*this); system.nprocess--; - gdt_free_entry(selector()); + if (selector()) + gdt_free_entry(selector()); if (m_kernelStack) { kfree(m_kernelStack); |