]> git.ipfire.org Git - thirdparty/kmod.git/commit
Remove module from hash when it's gone
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 15 Dec 2011 15:43:22 +0000 (13:43 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 15 Dec 2011 15:49:13 +0000 (13:49 -0200)
commit4084c176c1504397d0f66bd404799f7b2da92058
tree628488b6316a89768dff8a5bff1ef3204b5ab193
parent22907a188c76d646187759f665dd013e4d15641d
Remove module from hash when it's gone

Module was never being removed from hash table. Therefore, if we create
a module, unref it and create it again we will access freed memory.
Commit "53385cf Improve test of double references" introduced a new test
in test-mod-double-ref.c that previously to this commit was crashing and
now it's working fine.
libkmod/libkmod-module.c