commit | 3db5bf9d38ba701aa21d7f3235b83c286a8b1cdd | [log] [tgz] |
---|---|---|
author | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | Tue Jan 03 16:14:57 2012 -0200 |
committer | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | Tue Jan 03 16:14:57 2012 -0200 |
tree | 0e5a8728680fdcb3f1e50d4be722d3f473f3643e | |
parent | 026c7b448dc310e57f312e5497ef806d6c976ed8 [diff] |
kmod-depmod: fix replacement of existing modules. We cannot create a kmod_module for existing module name, it will fail due existing in the hash table "modules_by_name". To avoid it, we first delete the existing module, if lower priority, then add the new one. kmod_module_new_from_path() is called only when the former module was deleted or does not exist.