diff options
author | Bommithi Sakeena <bommithi.sakeena@intel.com> | 2023-09-27 16:50:12 +0000 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 11:41:21 -0500 |
commit | 909faaa66c5ec0d789b6620127329f2b17b01602 (patch) | |
tree | a9926df1745cea7c4de5723bbf5cb1573b155ad5 /drivers/gpu/drm/xe/xe_ttm_vram_mgr.c | |
parent | 28b1d9155c3c1651a6e184e1286cebb63ec6b51c (diff) | |
download | lwn-909faaa66c5ec0d789b6620127329f2b17b01602.tar.gz lwn-909faaa66c5ec0d789b6620127329f2b17b01602.zip |
drm/xe: Add a missing mutex_destroy to xe_ttm_vram_mgr
Ensure that the mutex is destroyed at fini function.
Cc: Maarten Lankhorst <maarten.lankhorst@linux.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_ttm_vram_mgr.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_ttm_vram_mgr.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |