[SWDEV-546543] Fix segfault in gpu_metrics

Signed-off-by: adapryor <Adam.pryor@amd.com>


[ROCm/amdsmi commit: e8fa06d223]
Tá an tiomantas seo le fáil i:
adapryor údaraithe agus Pham, Gabriel tiomanta 2025-08-22 15:23:57 -05:00
1 tuismitheoir 17f9feb94e
tiomantas 671612471d
1 comhad athraithe
+1 -1
+1 -1
Féach ar an gComhad
@@ -1137,7 +1137,7 @@ int Device::readDevInfoBinary(DevInfoTypes type, std::size_t b_size,
GpuMetricsCache* cache_ptr = nullptr;
{
std::lock_guard<std::mutex> map_lk(g_gpu_metrics_cache_map_mu);
cache_ptr = &g_gpu_metrics_cache_map[key]; // safe now
cache_ptr = &g_gpu_metrics_cache_map[key];
}
// Only cache for kDevGpuMetrics