]> git.ipfire.org Git - thirdparty/kmod.git/commit
Use errno instead of return value of init_module()
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Fri, 30 Dec 2011 16:13:33 +0000 (14:13 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Fri, 30 Dec 2011 16:13:33 +0000 (14:13 -0200)
commitbbf59327e397f3a5dd810cb044e1823d3b17653e
treed3d7174b02152ed585af1890043a464f34a000c5
parent1698456259988e9ecd5d366b6604dd646a924103
Use errno instead of return value of init_module()

Return -errno instead of the value returned by init_module(). We need to
differentiate between the several errors that might occur, e.g. "module
already loaded", access denied, etc.
libkmod/libkmod-module.c