]> git.ipfire.org Git - thirdparty/kmod.git/commit
depmod: Fix possible 0 return on error
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 3 Apr 2025 04:17:27 +0000 (23:17 -0500)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 7 Apr 2025 03:36:31 +0000 (22:36 -0500)
commit818851c770960720525a5a728ed9d7c1794984e9
tree6d4d078a9f55e6d37084044cbaca6ef272594b7d
parentec9ccdadf07675b2ae6b65e92d810ba0e6bfdad9
depmod: Fix possible 0 return on error

errno may be long overwritten at this point and doesn't mean much on a
return from the cb(). Just replace with the same error we are output on
the log.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/337
tools/depmod.c