mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-15 03:27:49 +01:00
kern: fix whoops in light ipc
This commit is contained in:
parent
8922bbd108
commit
36a3909a24
@ -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 New Issue
Block a user