projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2080029
)
module: Fix incorrect list_entry() use
author
Matt Fleming
<matt.fleming@intel.com>
Thu, 29 Nov 2012 22:40:46 +0000
(22:40 +0000)
committer
Matt Fleming
<matt.fleming@intel.com>
Fri, 30 Nov 2012 10:46:45 +0000
(10:46 +0000)
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>
com32/lib/sys/module/elf_module.c
patch
|
blob
|
history
diff --git
a/com32/lib/sys/module/elf_module.c
b/com32/lib/sys/module/elf_module.c
index
8a8ed20
..
24da220
100644
(file)
--- 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) {