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:
parent
8922bbd108
commit
36a3909a24
1 changed files with 2 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue