[igt-dev] [PATCH i-g-t] f1

Chris Wilson chris at chris-wilson.co.uk
Wed Jul 25 21:58:20 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..a5199348f 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 > 1)
+		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