Skip to content

Commit

Permalink
[VP] fix coverity issue invalid iterator
Browse files Browse the repository at this point in the history
fix coverity issue invalid iterator.
  • Loading branch information
Dylan-debug authored and intel-mediadev committed Nov 16, 2024
1 parent 606947d commit ff60c97
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,11 @@ MOS_STATUS VpPacketReuseManager::PreparePacketPipeReuse(SwFilterPipe *&swFilterP
else
{
auto pipe_TeamsPacket = m_pipeReused_TeamsPacket.find(index);
if (pipe_TeamsPacket == m_pipeReused_TeamsPacket.end())
{
VP_PUBLIC_ASSERTMESSAGE("Invalid teams packet pipe for reuse!");
VP_PUBLIC_CHK_STATUS_RETURN(MOS_STATUS_INVALID_PARAMETER);
}

VpCmdPacket *packet = pipe_TeamsPacket->second->GetPacket(0);
VP_PUBLIC_CHK_NULL_RETURN(packet);
Expand Down

0 comments on commit ff60c97

Please sign in to comment.