diff options
author | Zongyao Bai <zongyao.bai@intel.com> | 2025-09-16 05:47:15 +0800 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2025-09-16 07:59:36 -0700 |
commit | 1a869168d91f1a1a2b0db22cea0295c67908e5d8 (patch) | |
tree | 07a1cf11667786ef1085a23f3c5b8d06e60742dd /rust/helpers/vmalloc.c | |
parent | 456b32c9c1bc6c99310163281edb53eefd51330c (diff) |
drm/xe/sysfs: Add cleanup action in xe_device_sysfs_init
On partial failure, some sysfs files created before the failure might
not be removed. Add common cleanup step to remove them all immediately,
as is should be harmless to attempt to remove non-existing files.
Fixes: 0e414bf7ad01 ("drm/xe: Expose PCIe link downgrade attributes")
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Stuart Summers <stuart.summers@intel.com>
Cc: Shuicheng Lin <shuicheng.lin@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Zongyao Bai <zongyao.bai@intel.com>
Reviewed-by: Shuicheng Lin <shuicheng.lin@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20250915214716.1327379-2-zongyao.bai@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'rust/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions