summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-12-07 13:09:48 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-12-07 13:13:27 +0000
commitbcef70f7e43160b4b7cca0a1ce9c64a7fc0d1e32 (patch)
treeda2e64f749be21397d04de9c0ec617c62fc1e547 /lib
parent721866d83907c8ade5d20121418261d715b145ed (diff)
Revert "lib/kselftests: Eliminate ENOTTY hack"
This reverts commit 721866d83907c8ade5d20121418261d715b145ed. Still required for late tests as ->probe() is not allowed to return 1, but must return a negative error code.
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_kmod.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c
index beb80b8b..388be30f 100644
--- a/lib/igt_kmod.c
+++ b/lib/igt_kmod.c
@@ -398,6 +398,9 @@ void igt_kselftests(const char *module_name,
if (modprobe(kmod, options))
err = -errno;
kmod_module_remove_module(kmod, 0);
+
+ if (err == -ENOTTY) /* special case */
+ err = 0;
if (err)
kmsg_dump(kmsg);