]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: fixup kmod_module_get_initstate() error reporting
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 May 2025 12:10:42 +0000 (13:10 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 20 May 2025 02:51:43 +0000 (21:51 -0500)
commit428ed42cf4e602fb49a7f83bff757c3cc65663bb
tree3a28c270251da2d5f2093c99703a1a777576b344
parenta0fc05940cefa7f79a48132ff6029658b4aeab49
libkmod: fixup kmod_module_get_initstate() error reporting

Currently, the function will report the exact same issue twice. Where
the second DBG() and the error code returned, should highlight the
(potential) stat(2) failure.

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>
libkmod/libkmod-module.c