]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod-module: probe: return -EEXIST if told to do so
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 6 Feb 2012 14:52:27 +0000 (12:52 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 6 Feb 2012 14:54:42 +0000 (12:54 -0200)
commit08600ee579d9be4b54ee5ac56ce13706b3cfecf4
tree20bb029d6bba208228d8739c8a2e064ad8de3caa
parent814a57babfffb62a19ddeceb7949d601f1147fa9
libkmod-module: probe: return -EEXIST if told to do so

Commit "af9572c lib/module: check initstate before inserting module"
removed the check for "we should return -EEXIST" and moved it back to
the start of the function. The problem with this is the following
scenario:

- We check if module is in kernel -> no
- We insert the dependencies
<-- External program loads
the module
- We check if module is in kernel -> yes
- We return 0, when we should return -EEXIST
libkmod/libkmod-module.c