Destroy kernel and module in zello_world_jitc_ocloc

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2021-06-15 10:15:20 +00:00
committed by Compute-Runtime-Automation
parent 18e95c51f5
commit ed649fae66
2 changed files with 4 additions and 2 deletions

View File

@@ -143,8 +143,8 @@ void DrmAllocation::linkWithRegisteredHandle(uint32_t handle) {
}
void DrmAllocation::freeRegisteredBOBindExtHandles(Drm *drm) {
for (auto &i : registeredBoBindHandles) {
drm->unregisterResource(i);
for (auto it = registeredBoBindHandles.rbegin(); it != registeredBoBindHandles.rend(); ++it) {
drm->unregisterResource(*it);
}
}