mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-27 15:45:30 +00:00
* 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
@ -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>
|
2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
|
* 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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
mod->ref_count = 0;
|
mod->ref_count--;
|
||||||
return mod;
|
return mod;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user