* 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:
Vladimir 'phcoder' Serbinenko 2011-05-14 22:42:28 +02:00
parent 3d2c7e3591
commit 576881217f
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -626,7 +626,7 @@ grub_dl_load_file (const char *filename)
return 0;
}
mod->ref_count = 0;
mod->ref_count--;
return mod;
}