[NPU] Zero-initialize NpuInferProfiling::_dev_properties (#24758)

ze_device_properties_t has pNext pointer and if it's not nullptr then
it's assumed that it points to a different structure. pNext being
uninitialized can lead to a crash during zeDeviceGetProperties.
This commit is contained in:
Mateusz Tabaka 2024-05-29 10:52:04 +02:00 committed by GitHub
parent 2ec64af350
commit 229ce5839b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ private:
ze_device_handle_t _device_handle;
ov::log::Level _loglevel;
Logger _logger;
ze_device_properties_t _dev_properties;
ze_device_properties_t _dev_properties = {};
int64_t _npu_infer_stats_min_cc = LLONG_MAX;
int64_t _npu_infer_stats_max_cc = 0;
int64_t _npu_infer_stats_accu_cc = 0;