From 36a3909a2428fc657c0be06c14bd83e00178d167 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 29 Jul 2020 03:59:24 -0700 Subject: [PATCH] kern: fix whoops in light ipc --- libraries/libmesosphere/source/kern_k_light_server_session.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/libmesosphere/source/kern_k_light_server_session.cpp b/libraries/libmesosphere/source/kern_k_light_server_session.cpp index 7c3cc1ce9..d049fee48 100644 --- a/libraries/libmesosphere/source/kern_k_light_server_session.cpp +++ b/libraries/libmesosphere/source/kern_k_light_server_session.cpp @@ -114,6 +114,7 @@ namespace ams::kern { this->current_request = this->request_queue.GetFront(); this->current_request->Open(); this->server_thread = server_thread; + break; } else { /* Otherwise, wait for a request to come in. */ R_UNLESS(this->server_queue.SleepThread(server_thread), svc::ResultTerminationRequested()); @@ -133,6 +134,7 @@ namespace ams::kern { /* Copy the client data. */ std::memcpy(server_thread->GetLightSessionData(), this->current_request->GetLightSessionData(), KLightSession::DataSize); + return ResultSuccess(); } void KLightServerSession::CleanupRequests() {