From 3c6505c2d5988050f8282f556ff654ab3b2e31a1 Mon Sep 17 00:00:00 2001 From: Ioannis Assiouras Date: Mon, 4 Dec 2023 23:51:11 +0000 Subject: [PATCH] SWDEV-435715 - Acquire the streamSetLock prior to iterating the set in WaitActiveStreams Change-Id: I0a9721dcde1a3716192d532e290d8a7afc8ac9fc --- hipamd/src/hip_stream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/hipamd/src/hip_stream.cpp b/hipamd/src/hip_stream.cpp index 44ecfd310..f325a7201 100644 --- a/hipamd/src/hip_stream.cpp +++ b/hipamd/src/hip_stream.cpp @@ -249,6 +249,7 @@ void iHipWaitActiveStreams(hip::Stream* blocking_stream, bool wait_null_stream) } //Reset the dirty flag for all streams now that the marker is submitted + amd::ScopedLock lock(streamSetLock); for (const auto& stream : streamSet) { amd::HostQueue* active_queue = stream->asHostQueue(); if (active_queue->vdev()->isFenceDirty()) {