[igt-dev] [PATCH i-g-t] f3
Chris Wilson
chris at chris-wilson.co.uk
Wed Jul 25 21:59:08 UTC 2018
---
tests/drv_module_reload.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/drv_module_reload.c b/tests/drv_module_reload.c
index d717eb61e..0d2f9e265 100644
--- a/tests/drv_module_reload.c
+++ b/tests/drv_module_reload.c
@@ -251,6 +251,9 @@ inject_fault(const char *module_name, const char *opt, int fault)
igt_assert(fault > 0);
snprintf(buf, sizeof(buf), "%s=%d", opt, fault);
+ if (fault > 3)
+ return fault;
+
if (igt_kmod_load(module_name, buf)) {
igt_warn("Failed to load module '%s' with options '%s'\n",
module_name, buf);
--
2.18.0
More information about the igt-dev
mailing list