OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[NPU] Fix Coverity NULL_FIELD in WeightlessGraph::create_pipeline (#38877)
Alexandru Lorintia1cc667e1f27
diff --git a/src/plugins/intel_npu/src/compiler_adapter/src/weightless_graph.cpp b/src/plugins/intel_npu/src/compiler_adapter/src/weightless_graph.cppindex 426cd91c1e4..c9b7fefed1c 100644--- a/src/plugins/intel_npu/src/compiler_adapter/src/weightless_graph.cpp+++ b/src/plugins/intel_npu/src/compiler_adapter/src/weightless_graph.cpp@@ -609,6 +609,9 @@ void WeightlessGraph::create_pipeline(const size_t initIndex,if (_zeGraphExt == nullptr) {OPENVINO_THROW("Zero compiler adapter wasn't initialized");}+ if (_zeroInitStruct == nullptr) {+ OPENVINO_THROW("Zero init structure wasn't initialized");+ }_initsCommandLists.at(initIndex) = std::make_unique<CommandList>(_zeroInitStruct);_initsFences.at(initIndex) = std::make_unique<Fence>(_initsCommandQueue);