Unverified Commit ff89a4d2 authored by Zongyao Bai's avatar Zongyao Bai Committed by Rodrigo Vivi
Browse files

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: 0e414bf7 ("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: default avatarZongyao Bai <zongyao.bai@intel.com>
Reviewed-by: default avatarShuicheng Lin <shuicheng.lin@intel.com>
Reviewed-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20250915214716.1327379-2-zongyao.bai@intel.com


Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
(cherry picked from commit 1a869168)
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent cbc7f3b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment