1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-18 16:32:05 +00:00

kern: add missing abort on unmap failure

This commit is contained in:
Michael Scire 2021-07-11 21:59:06 -07:00
parent a7c14e03b9
commit 5e3339e866

View file

@ -120,7 +120,7 @@ namespace ams::kern {
/* If we fail to unmap, we want to do a partial unlock. */ /* If we fail to unmap, we want to do a partial unlock. */
{ {
auto unlock_guard = SCOPE_GUARD { page_table->UnlockForDeviceAddressSpacePartialMap(process_address, size, size); }; auto unlock_guard = SCOPE_GUARD { MESOSPHERE_R_ABORT_UNLESS(page_table->UnlockForDeviceAddressSpacePartialMap(process_address, size, size)); };
/* Unmap. */ /* Unmap. */
R_TRY(m_table.Unmap(page_table, process_address, size, device_address)); R_TRY(m_table.Unmap(page_table, process_address, size, device_address));