fix: add unrecoverable to avoid division by zero

Related-To: NEO-9038
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-10-05 12:40:15 +00:00
committed by Compute-Runtime-Automation
parent e4c162c572
commit a583213eef

View File

@@ -104,6 +104,7 @@ Event::State IpSamplingMetricStreamerImp::getNotificationState() {
uint32_t IpSamplingMetricStreamerImp::getMaxSupportedReportCount() {
const auto unitReportSize = ipSamplingSource.getMetricOsInterface()->getUnitReportSize();
UNRECOVERABLE_IF(unitReportSize == 0);
return ipSamplingSource.getMetricOsInterface()->getRequiredBufferSize(UINT32_MAX) / unitReportSize;
}