[Kernel] Fixed race condition crash related to missing ke_timestamp_bundle_ptr_

This commit is contained in:
Gliniak 2024-08-10 16:30:31 +02:00
parent 4c6e0ff685
commit 1fdf250f7d
1 changed files with 1 additions and 1 deletions

View File

@ -991,10 +991,10 @@ uint32_t KernelState::CreateKeTimestampBundle() {
xe::store_and_swap<uint32_t>(&lpKeTimeStampBundle->padding, 0);
ke_timestamp_bundle_ptr_ = pKeTimeStampBundle;
timestamp_timer_ = xe::threading::HighResolutionTimer::CreateRepeating(
std::chrono::milliseconds(1),
[this]() { this->UpdateKeTimestampBundle(); });
ke_timestamp_bundle_ptr_ = pKeTimeStampBundle;
return pKeTimeStampBundle;
}