2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
* include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__ ((unused))' to `__attribute__ ((used))'. (GRUB_MOD_FINI): Likewise. * kern/dl.c (grub_dl_load_file): Fix null pointer dereference. * genmk.rb (PModule): Assign space to common symbols when linking modules.
This commit is contained in:
parent
777aff3957
commit
b38551dabe
4 changed files with 16 additions and 4 deletions
|
@ -560,6 +560,9 @@ grub_dl_load_file (const char *filename)
|
|||
goto failed;
|
||||
|
||||
mod = grub_dl_load_core (core, size);
|
||||
if (! mod)
|
||||
goto failed;
|
||||
|
||||
mod->ref_count = 0;
|
||||
|
||||
failed:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue