From 345f1457928b9fbc9b1f6c2679cf30d5b00a6fd2 Mon Sep 17 00:00:00 2001 From: Cai_Jianxing Date: Mon, 14 Oct 2024 20:17:17 +0800 Subject: [PATCH] [VP] fix coverity issue 25209 fix coverity issue --- .../agnostic/common/vp/hal/bufferMgr/vp_resource_manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/media_softlet/agnostic/common/vp/hal/bufferMgr/vp_resource_manager.cpp b/media_softlet/agnostic/common/vp/hal/bufferMgr/vp_resource_manager.cpp index 643709060cb..741c1c83228 100644 --- a/media_softlet/agnostic/common/vp/hal/bufferMgr/vp_resource_manager.cpp +++ b/media_softlet/agnostic/common/vp/hal/bufferMgr/vp_resource_manager.cpp @@ -1142,6 +1142,8 @@ MOS_STATUS VpResourceManager::AssignFcResources(VP_EXECUTE_CAPS &caps, std::vect // Allocate L0 fc intermedia outputSurface { MOS_FORMAT fcIntermediaSurfaceOutputFormat = Format_Any; + VP_PUBLIC_CHK_NULL_RETURN(outputSurface); + VP_PUBLIC_CHK_NULL_RETURN(outputSurface->osSurface); switch (outputSurface->osSurface->Format) { case Format_RGBP: