1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-10 06:01:52 +00:00

kern: fix whoops in light ipc

This commit is contained in:
Michael Scire 2020-07-29 03:59:24 -07:00 committed by SciresM
parent 8922bbd108
commit 36a3909a24

View file

@ -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() {