Skip to content

Commit 376eac5

Browse files
VickyZenggintel-mediadev
authored andcommitted
[VP] Coverity issues clean up part 3
Fix coverity issues.
1 parent 197841a commit 376eac5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

media_softlet/agnostic/common/vp/hal/packet/vp_vebox_cmd_packet.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2336,7 +2336,10 @@ MOS_STATUS VpVeboxCmdPacket::SetUpdatedExecuteResource(
23362336
VP_SURFACE_SETTING &surfSetting)
23372337
{
23382338
VP_FUNC_CALL();
2339-
2339+
VP_RENDER_CHK_NULL_RETURN(inputSurface);
2340+
VP_RENDER_CHK_NULL_RETURN(outputSurface);
2341+
VP_RENDER_CHK_NULL_RETURN(inputSurface->osSurface);
2342+
VP_RENDER_CHK_NULL_RETURN(outputSurface->osSurface);
23402343
m_allocator->UpdateResourceUsageType(&inputSurface->osSurface->OsResource, MOS_HW_RESOURCE_USAGE_VP_INPUT_PICTURE_FF);
23412344
m_allocator->UpdateResourceUsageType(&outputSurface->osSurface->OsResource, MOS_HW_RESOURCE_USAGE_VP_OUTPUT_PICTURE_FF);
23422345

0 commit comments

Comments
 (0)