]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: return the errno from kmod_elf_new()
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 May 2025 17:58:11 +0000 (18:58 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 20 May 2025 02:51:44 +0000 (21:51 -0500)
commita0fb3098ccbc2d19db0d839086137f8fe3868bfd
tree4ee4d0a952d831c2d5825745541b15e395735d89
parent0e9ac8571117705561ecec36b01f1e18fb04c999
libkmod: return the errno from kmod_elf_new()

Rework the function signature and return the error code instead of the
stripped module. Thus we no longer explicitly set errno.

Reference: https://github.com/kmod-project/kmod/issues/244
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-elf.c
libkmod/libkmod-file.c
libkmod/libkmod-internal.h
testsuite/init_module.c