diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-12-07 13:09:48 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-12-07 13:13:27 +0000 |
commit | bcef70f7e43160b4b7cca0a1ce9c64a7fc0d1e32 (patch) | |
tree | da2e64f749be21397d04de9c0ec617c62fc1e547 /lib | |
parent | 721866d83907c8ade5d20121418261d715b145ed (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.c | 3 |
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); |