From af4eb57268aed9ecf74dd36b6082e47db6b181a9 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 17 Jun 2021 12:57:56 -0700 Subject: [PATCH] kern: fix missing peak set in KResourceLimit::SetLimitValue --- libmesosphere/source/kern_k_resource_limit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libmesosphere/source/kern_k_resource_limit.cpp b/libmesosphere/source/kern_k_resource_limit.cpp index 9b494108..79c2c755 100644 --- a/libmesosphere/source/kern_k_resource_limit.cpp +++ b/libmesosphere/source/kern_k_resource_limit.cpp @@ -108,6 +108,7 @@ namespace ams::kern { R_UNLESS(m_current_values[which] <= value, svc::ResultInvalidState()); m_limit_values[which] = value; + m_peak_values[which] = m_current_values[which]; return ResultSuccess(); }