From fe79bc253a06cc9ef70e5a45aa6a2f77324e868d Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 19 Aug 2021 07:38:25 -0700 Subject: [PATCH] kern: fix same is_current check in GetThreadContext --- libraries/libmesosphere/source/kern_k_debug_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libmesosphere/source/kern_k_debug_base.cpp b/libraries/libmesosphere/source/kern_k_debug_base.cpp index a48921ad8..b427ee8b7 100644 --- a/libraries/libmesosphere/source/kern_k_debug_base.cpp +++ b/libraries/libmesosphere/source/kern_k_debug_base.cpp @@ -422,8 +422,8 @@ namespace ams::kern { for (auto i = 0; i < static_cast(cpu::NumCores); ++i) { if (thread == Kernel::GetScheduler(i).GetSchedulerCurrentThread()) { current = true; + break; } - break; } /* If the thread is current, retry until it isn't. */