Skip to content

Commit 6fe653f

Browse files
nakshatragoyalhghimira
authored andcommitted
drm/xe: Add fault injection for xe_oa_alloc_regs
Add fault injection for xe_oa_alloc_regs to allow it to fail while executing xe_oa_add_config_ioctl(). This need to be added as it cannot be reached by injecting error through IOCTL arguments. Signed-off-by: Nakshtra Goyal <[email protected]> Reviewed-by: Francois Dugast <[email protected]> Reviewed-by: Himal Prasad Ghimiray <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Himal Prasad Ghimiray <[email protected]>
1 parent bf6cb06 commit 6fe653f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/xe/xe_oa.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2221,6 +2221,7 @@ xe_oa_alloc_regs(struct xe_oa *oa, bool (*is_valid)(struct xe_oa *oa, u32 addr),
22212221
kfree(oa_regs);
22222222
return ERR_PTR(err);
22232223
}
2224+
ALLOW_ERROR_INJECTION(xe_oa_alloc_regs, ERRNO);
22242225

22252226
static ssize_t show_dynamic_id(struct kobject *kobj,
22262227
struct kobj_attribute *attr,

0 commit comments

Comments
 (0)