From 4bd9ed23c51beb53f5fb650992ed20328876c411 Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Thu, 29 Nov 2012 22:40:46 +0000 Subject: [PATCH] module: Fix incorrect list_entry() use Correct the bogus use of list_entry() that was introduced in commit 8f1c64acf9c6 ("module: Stop silently failing to load dependency modules"). Signed-off-by: Matt Fleming --- com32/lib/sys/module/elf_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com32/lib/sys/module/elf_module.c b/com32/lib/sys/module/elf_module.c index 8a8ed20..24da220 100644 --- a/com32/lib/sys/module/elf_module.c +++ b/com32/lib/sys/module/elf_module.c @@ -526,7 +526,7 @@ int module_load(struct elf_module *module) { CHECKED(res, prepare_dynlinking(module), error); //printf("check... 4\n"); - head = list_entry(&modules_head, typeof(*head), list); + head = list_entry((&modules_head)->next, typeof(*head), list); /* Find modules we need to load as dependencies */ if (module->str_table) { -- 2.7.4