libkmod: simplify lookup when builtin.modinfo.bin file is missing

When we try to lookup a module and builtin.modinfo.bin is missing, we
would do the right thing because the caller was replacing the return
code with 0 (and the list was not modified).

Make it simpler by allowing the caller to check and differentiate the
errors between module not found and index not found.
2 files changed
tree: 7a042aaae109bc1b3211496a932d15b0a4899847
  1. .semaphore/
  2. libkmod/
  3. m4/
  4. man/
  5. shared/
  6. shell-completion/
  7. testsuite/
  8. tools/
  9. .gitignore
  10. .travis.yml
  11. autogen.sh
  12. CODING-STYLE
  13. configure.ac
  14. COPYING
  15. Makefile.am
  16. NEWS
  17. README
  18. README.md
  19. TODO
README.md

kmod - Linux kernel module handling

Coverity Scan Status

This is a mirror only. Please see README file for more information.