]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 14 May 2011 20:42:28 +0000 (22:42 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 14 May 2011 20:42:28 +0000 (22:42 +0200)
rather than resetting it to allow modules to reference themselves
in init.

ChangeLog
grub-core/kern/dl.c

index 6777eb0f4b53ad28b890ccedf4c76e66f6905be7..429467d02946548abef3639f237f2d89cc9efad7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 6104f229e1cd52b38fe858ab07392a9b4948b67b..623e0cbcb32637fa6667251d3de6d04e170ae887 100644 (file)
@@ -626,7 +626,7 @@ grub_dl_load_file (const char *filename)
       return 0;
     }
 
-  mod->ref_count = 0;
+  mod->ref_count--;
   return mod;
 }