]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite/init-module: error out init_module() on kmod failure
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 May 2025 16:50:03 +0000 (17:50 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 20 May 2025 02:51:43 +0000 (21:51 -0500)
commit426154c62a14c4d9c65706e9d9732c2d29eab2bc
tree1f7654ed225bd068a3f310e89519877703877ef5
parente2da6209830a8b252b7f578aafbd2a61db69f42b
testsuite/init-module: error out init_module() on kmod failure

Currently our wrapper init_module() will happily return success whenever
libkmod fails. While such failures are unlikely, our wrapper should also
fail. In part so it doesn't mask a potentially deeper problem and in
part because the kmod API used, will set errno... Something a normal
syscall wouldn't do AFAICT.

v2:
 - remove the respective comment

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/346
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/init_module.c