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: