diff options
author | Matt Fleming <matt.fleming@intel.com> | 2012-11-29 22:40:46 +0000 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2012-11-30 10:46:45 +0000 |
commit | 4bd9ed23c51beb53f5fb650992ed20328876c411 (patch) | |
tree | 9a0dfbd8501fcaf8e8a8df75e7001dc6194654bf | |
parent | 2080029baa13b5b8d8b94ae1dc27ce4ea82b5397 (diff) | |
download | syslinux-4bd9ed23c51beb53f5fb650992ed20328876c411.tar.gz syslinux-4bd9ed23c51beb53f5fb650992ed20328876c411.tar.xz syslinux-4bd9ed23c51beb53f5fb650992ed20328876c411.zip |
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 <matt.fleming@intel.com>
-rw-r--r-- | com32/lib/sys/module/elf_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/sys/module/elf_module.c b/com32/lib/sys/module/elf_module.c index 8a8ed20e..24da2209 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) { |