intel_extreme: only primary accelerant should kill the locks. Should fix trouble after closing clones.

This commit is contained in:
Rudolf Cornelissen 2021-10-03 13:49:40 +00:00
parent 7aa5574713
commit 66af68c2e6

View File

@ -551,13 +551,12 @@ intel_uninit_accelerant(void)
delete_area(gInfo->mode_list_area);
gInfo->mode_list = NULL;
intel_shared_info &info = *gInfo->shared_info;
uninit_lock(&info.accelerant_lock);
uninit_lock(&info.engine_lock);
uninit_ring_buffer(info.primary_ring_buffer);
if (!gInfo->is_clone) {
intel_shared_info &info = *gInfo->shared_info;
uninit_lock(&info.accelerant_lock);
uninit_lock(&info.engine_lock);
uninit_ring_buffer(info.primary_ring_buffer);
}
uninit_common();
}