]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite: Fix init_module
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 18 Sep 2024 19:53:23 +0000 (21:53 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sat, 21 Sep 2024 15:51:01 +0000 (10:51 -0500)
commit6eef551997fe1f6227f18ce584b6f39cc7ae31bf
treefe48090b40d714dbc9c793a6c3fbd87516c8a0a6
parent47407a2565cbd5c58456e7d2efa57158f5238c06
testsuite: Fix init_module

Apply same logic as in delete_module.c, i.e. pass a reference to a
pointer instead of the pointer value, otherwise we cannot update
the linked list and added entries are lost.

Spotted with ASAN while running testsuite.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/141
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/init_module.c