From 186e0da67fb5bc2e2241e83ce18d09933c12034c Mon Sep 17 00:00:00 2001 From: WenshengZhang Date: Mon, 11 Sep 2023 15:05:17 +0800 Subject: [PATCH] [VP] clean up remaining coverity issue clean up remaining coverity issue. --- .../agnostic/common/vp/hal/vphal_render_composite.cpp | 4 ++-- .../agnostic/Xe_R/Xe_HPG_Base/hw/mhw_state_heap_xe_hpg.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/media_driver/agnostic/common/vp/hal/vphal_render_composite.cpp b/media_driver/agnostic/common/vp/hal/vphal_render_composite.cpp index e1dd8260da8..0d5cd986f46 100644 --- a/media_driver/agnostic/common/vp/hal/vphal_render_composite.cpp +++ b/media_driver/agnostic/common/vp/hal/vphal_render_composite.cpp @@ -1448,10 +1448,10 @@ MOS_STATUS CompositeState::IntermediateAllocation(PVPHAL_SURFACE &pIntermediate, // Get resource info (width, height, pitch, tiling, etc) MOS_ZeroMemory(&Info, sizeof(VPHAL_GET_SURFACE_INFO)); - VpHal_GetSurfaceInfo( + VPHAL_RENDER_CHK_STATUS_RETURN(VpHal_GetSurfaceInfo( pOsInterface, &Info, - pIntermediate); + pIntermediate)); } } diff --git a/media_softlet/agnostic/Xe_R/Xe_HPG_Base/hw/mhw_state_heap_xe_hpg.cpp b/media_softlet/agnostic/Xe_R/Xe_HPG_Base/hw/mhw_state_heap_xe_hpg.cpp index b56d53ae3be..a35d5d6aa58 100644 --- a/media_softlet/agnostic/Xe_R/Xe_HPG_Base/hw/mhw_state_heap_xe_hpg.cpp +++ b/media_softlet/agnostic/Xe_R/Xe_HPG_Base/hw/mhw_state_heap_xe_hpg.cpp @@ -147,10 +147,10 @@ MOS_STATUS MHW_STATE_HEAP_INTERFACE_XE_HPG::AddInterfaceDescriptorData( // need to subtract memory block's offset in current state heap for AddData API offset -= pParams->memoryBlock->GetOffset(); - MHW_MI_CHK_STATUS(pParams->memoryBlock->AddData(pInterfaceDescriptor, offset, sizeof(mhw_state_heap_xe_hpg::INTERFACE_DESCRIPTOR_DATA_CMD))); + eStatus = pParams->memoryBlock->AddData(pInterfaceDescriptor, offset, sizeof(mhw_state_heap_xe_hpg::INTERFACE_DESCRIPTOR_DATA_CMD)); MOS_SafeFreeMemory(pInterfaceDescriptor); - + MHW_MI_CHK_STATUS(eStatus); return eStatus; }