aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorMichal Wajdeczko <michal.wajdeczko@intel.com>2025-07-31 21:33:31 +0200
committerLucas De Marchi <lucas.demarchi@intel.com>2025-08-05 11:53:29 -0700
commitb90613fb02179a01c6042d8a952e2c68e81d3cf7 (patch)
tree9992df3663ed1dde3cddd16da354e10d1198e16c /drivers/gpu
parentdrm/xe: Print module init abort code (diff)
downloadlinux-b90613fb02179a01c6042d8a952e2c68e81d3cf7.tar.gz
linux-b90613fb02179a01c6042d8a952e2c68e81d3cf7.zip
drm/xe/configfs: Destroy xe_configfs.su_mutex on exit/error
While mutex_destroy() is NOP when CONFIG_DEBUG_MUTEXES is not enabled, we should still call it. While around, drop a trailing line. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://lore.kernel.org/r/20250731193339.179829-4-michal.wajdeczko@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/xe/xe_configfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_configfs.c b/drivers/gpu/drm/xe/xe_configfs.c
index 36e2b45b305f..56fbf4c1c37f 100644
--- a/drivers/gpu/drm/xe/xe_configfs.c
+++ b/drivers/gpu/drm/xe/xe_configfs.c
@@ -401,6 +401,7 @@ int __init xe_configfs_init(void)
if (ret) {
pr_err("Error %d while registering %s subsystem\n",
ret, root->cg_item.ci_namebuf);
+ mutex_destroy(&xe_configfs.su_mutex);
return ret;
}
@@ -410,5 +411,5 @@ int __init xe_configfs_init(void)
void __exit xe_configfs_exit(void)
{
configfs_unregister_subsystem(&xe_configfs);
+ mutex_destroy(&xe_configfs.su_mutex);
}
-