summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_guc_ct.c
diff options
context:
space:
mode:
authorBommithi Sakeena <bommithi.sakeena@intel.com>2023-09-27 19:50:11 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 19:41:21 +0300
commit28b1d9155c3c1651a6e184e1286cebb63ec6b51c (patch)
tree6ec8d9dc0437d92b1226ec42beb15f782ca3b43e /drivers/gpu/drm/xe/xe_guc_ct.c
parent5349bb76d62048e73f6e4a863b40a309c62dc47f (diff)
downloadlinux-28b1d9155c3c1651a6e184e1286cebb63ec6b51c.tar.xz
drm/xe: Ensure mutex are destroyed
Add missing mutex_destroy calls to fini functions or convert to drmm_mutex_init where fini function is not available. Cc: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Bommithi Sakeena <bommithi.sakeena@intel.com> Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_guc_ct.c')
-rw-r--r--drivers/gpu/drm/xe/xe_guc_ct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_guc_ct.c b/drivers/gpu/drm/xe/xe_guc_ct.c
index 2046bd269bbd..8b686c8b3339 100644
--- a/drivers/gpu/drm/xe/xe_guc_ct.c
+++ b/drivers/gpu/drm/xe/xe_guc_ct.c
@@ -137,7 +137,7 @@ int xe_guc_ct_init(struct xe_guc_ct *ct)
xe_assert(xe, !(guc_ct_size() % PAGE_SIZE));
- mutex_init(&ct->lock);
+ drmm_mutex_init(&xe->drm, &ct->lock);
spin_lock_init(&ct->fast_lock);
xa_init(&ct->fence_lookup);
INIT_WORK(&ct->g2h_worker, g2h_worker_func);