mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 13:59:45 -04:00
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>
This commit is contained in:
committed by
Lucas De Marchi
parent
823301c847
commit
b90613fb02
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user