aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorLiam <[email protected]>2023-12-18 15:38:50 -0500
committerLiam <[email protected]>2023-12-22 21:52:49 -0500
commitc57ae803a6e04f303c168292aaf727ccb61e5de2 (patch)
tree2f959b67638ab1134cfca19ac1f041552a68c335 /src/core/hle/kernel
parentdb7b2bc8f136868ea5251d5a504bd9f89d993c67 (diff)
downloadyuzu-android-c57ae803a6e04f303c168292aaf727ccb61e5de2.tar.gz
yuzu-android-c57ae803a6e04f303c168292aaf727ccb61e5de2.zip
kernel: fix resource limit imbalance
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/k_client_port.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_client_port.cpp b/src/core/hle/kernel/k_client_port.cpp
index 9b20c4d75..68cea978a 100644
--- a/src/core/hle/kernel/k_client_port.cpp
+++ b/src/core/hle/kernel/k_client_port.cpp
@@ -58,8 +58,8 @@ Result KClientPort::CreateSession(KClientSession** out) {
KSession* session{};
// Reserve a new session from the resource limit.
- KScopedResourceReservation session_reservation(
- GetCurrentProcessPointer(m_kernel)->GetResourceLimit(), LimitableResource::SessionCountMax);
+ KScopedResourceReservation session_reservation(GetCurrentProcessPointer(m_kernel),
+ LimitableResource::SessionCountMax);
R_UNLESS(session_reservation.Succeeded(), ResultLimitReached);
// Allocate a session normally.