1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

Kernel: Assert if we try to initialize VMWareBackdoor more than once

This commit is contained in:
Liav A 2020-04-10 01:09:10 +03:00 committed by Andreas Kling
parent 02c9f4c951
commit e9df6189f4

View file

@ -95,6 +95,7 @@ static bool detect_presence()
VMWareBackdoor* VMWareBackdoor::initialize()
{
ASSERT(s_vmware_backdoor == nullptr);
if (!detect_presence())
return nullptr;