mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-10-12 02:09:17 +00:00
vm: fix endless loop in map_self if map returns nullptr
This commit is contained in:
@@ -1001,6 +1001,16 @@ namespace utils
|
||||
if (!mapped)
|
||||
{
|
||||
mapped = this->map(nullptr, prot);
|
||||
|
||||
if (!mapped)
|
||||
{
|
||||
if ((ptr = m_ptr))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
// Install mapped memory
|
||||
|
||||
Reference in New Issue
Block a user