From: Bommithi Sakeena Date: Wed, 27 Sep 2023 16:50:12 +0000 (+0000) Subject: drm/xe: Add a missing mutex_destroy to xe_ttm_vram_mgr X-Git-Tag: v6.8-rc1~21^2~13^2~340 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=909faaa66c5ec0d789b6620127329f2b17b01602;p=linux-block.git drm/xe: Add a missing mutex_destroy to xe_ttm_vram_mgr Ensure that the mutex is destroyed at fini function. Cc: Maarten Lankhorst Signed-off-by: Bommithi Sakeena Reviewed-by: Niranjana Vishwanathapura Signed-off-by: Rodrigo Vivi --- diff --git a/drivers/gpu/drm/xe/xe_ttm_vram_mgr.c b/drivers/gpu/drm/xe/xe_ttm_vram_mgr.c index 06a54c8bd46f..285791eb4a79 100644 --- a/drivers/gpu/drm/xe/xe_ttm_vram_mgr.c +++ b/drivers/gpu/drm/xe/xe_ttm_vram_mgr.c @@ -328,6 +328,8 @@ static void ttm_vram_mgr_fini(struct drm_device *dev, void *arg) ttm_resource_manager_cleanup(&mgr->manager); ttm_set_driver_manager(&xe->ttm, mgr->mem_type, NULL); + + mutex_destroy(&mgr->lock); } int __xe_ttm_vram_mgr_init(struct xe_device *xe, struct xe_ttm_vram_mgr *mgr,