Ver código fonte

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

Liav A 5 anos atrás
pai
commit
e9df6189f4
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      Kernel/Devices/VMWareBackdoor.cpp

+ 1 - 0
Kernel/Devices/VMWareBackdoor.cpp

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