* grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
rather than resetting it to allow modules to reference themselves in init.
This commit is contained in:
parent
3d2c7e3591
commit
576881217f
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
|
||||
rather than resetting it to allow modules to reference themselves
|
||||
in init.
|
||||
|
||||
2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
|
||||
|
|
|
@ -626,7 +626,7 @@ grub_dl_load_file (const char *filename)
|
|||
return 0;
|
||||
}
|
||||
|
||||
mod->ref_count = 0;
|
||||
mod->ref_count--;
|
||||
return mod;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue