]> git.ipfire.org Git - thirdparty/kmod.git/commit
tools/depmod: don't use %m on kmod_new() failure
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 4 Jun 2025 16:16:25 +0000 (17:16 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 11 Jun 2025 13:03:26 +0000 (08:03 -0500)
commit994da3b8d2abb161ce218f1102f92357329111ff
treeb7e5f3b7fad8f66ab3b5f21fcc89bfb4c5a6700e
parent5c226b6fa0da0284d675bd1ae96b12c0b88e2eae
tools/depmod: don't use %m on kmod_new() failure

The KMOD API returns NULL on error and getting the exact means why it
failed is undefined. In practise the errno is set in _some_ of the error
paths, but not all.

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