mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
drm/xe: Return if kobj creation is failed
Return after warning regarding kobj creation failure.
Fixes: 4ae3aeab32 ("drm/xe: Add vram frequency sysfs attributes")
Cc: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
Cc: Tejas Upadhyay <tejas.upadhyay@intel.com>
Cc: Bommu Krishnaiah <krishnaiah.bommu@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240313150545.2830408-2-himal.prasad.ghimiray@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
parent
e5a95c8c0a
commit
989d07ac6b
|
|
@ -111,8 +111,10 @@ void xe_vram_freq_sysfs_init(struct xe_tile *tile)
|
|||
return;
|
||||
|
||||
kobj = kobject_create_and_add("memory", tile->sysfs);
|
||||
if (!kobj)
|
||||
if (!kobj) {
|
||||
drm_warn(&xe->drm, "failed to add memory directory, err: %d\n", -ENOMEM);
|
||||
return;
|
||||
}
|
||||
|
||||
err = sysfs_create_group(kobj, &freq_group_attrs);
|
||||
if (err) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user