Skip to content

Commit

Permalink
[CP] MAVD issue fix
Browse files Browse the repository at this point in the history
Add null pointer check
  • Loading branch information
kankanzh authored and intel-mediadev committed Sep 26, 2023
1 parent c1f57e4 commit e001639
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ MOS_STATUS CodechalHwInterfaceXe_Lpm_Plus_Base::GetHcpPrimitiveCommandSize(
CODEC_HW_CHK_STATUS_RETURN(m_hcpItf->GetHcpPrimitiveCommandSize(
mode, &hcpCommandsSize, &hcpPatchListSize, modeSpecific ? true : false));

CODEC_HW_CHK_NULL_RETURN(m_cpInterface);
m_cpInterface->GetCpSliceLevelCmdSize(cpCmdsize, cpPatchListSize);
}

Expand Down

0 comments on commit e001639

Please sign in to comment.