Merge pull request #451 from DrChat/mmio_deadlock_fix
Fix a rare deadlock in the MMIO handler
This commit is contained in:
commit
a5eec3d2c5
|
@ -172,6 +172,7 @@ bool MMIOHandler::CheckWriteWatch(X64Context* thread_context,
|
|||
if (cur_access != memory::PageAccess::kReadOnly &&
|
||||
cur_access != memory::PageAccess::kNoAccess) {
|
||||
// Another thread has cleared this write watch. Abort.
|
||||
global_critical_region_.mutex().unlock();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue