Fix lock usage in wddm

Change-Id: I3532b97a1b57747621e106b03263bfb070b7b05a
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski 2019-02-08 09:04:20 +00:00 committed by sys_ocldev
parent 371eef3895
commit 0e55fe0801
1 changed files with 1 additions and 1 deletions

View File

@ -985,7 +985,7 @@ void Wddm::applyBlockingMakeResident(WddmAllocation &allocation) {
break;
}
DEBUG_BREAK_IF(!madeResident);
auto &lock = acquireLock(temporaryResourcesLock);
auto lock = acquireLock(temporaryResourcesLock);
temporaryResources.push_back(allocation.handle);
lock.unlock();
while (currentPagingFenceValue > *getPagingFenceAddress())