]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe/hw_engine_class_sysfs: Allow to inject error during probe
authorFrancois Dugast <francois.dugast@intel.com>
Fri, 14 Mar 2025 10:50:50 +0000 (11:50 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 24 Mar 2025 14:35:14 +0000 (10:35 -0400)
Allow fault injection in a function used during initialization by
xe_hw_engine_class_sysfs_init() so that its error handling can be
tested.

Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250314105050.636983-1-francois.dugast@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c

index b53e8d2accdbd735e21531fa380a7a87f7bdeeb5..e238c0e9fdd016c205119eb9a51bb2c5d22b055b 100644 (file)
@@ -558,6 +558,7 @@ err_object:
        kobject_put(kobj);
        return err;
 }
+ALLOW_ERROR_INJECTION(xe_add_hw_engine_class_defaults, ERRNO); /* See xe_pci_probe() */
 
 static void xe_hw_engine_sysfs_kobj_release(struct kobject *kobj)
 {