]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 27 Feb 2012 10:39:15 +0000 (11:39 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 27 Feb 2012 10:39:15 +0000 (11:39 +0100)
error.

ChangeLog
grub-core/disk/diskfilter.c

index 87e89b4c448be6c528dcbe8e1c7495a0502e597c..0ac5e583881c83cd683f030872aa49049b0cd84d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
+       error.
+
 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * configure.ac: Remove inappropriate use of program_transform_name
index b02fcc60eb8e48737dd92252982166efe71ce6d2..14f7c03402550abeb7a69080855c6231021f0d6c 100644 (file)
@@ -214,7 +214,7 @@ grub_diskfilter_iterate (int (*hook) (const char *name),
 
   if (pull == GRUB_DISK_PULL_RESCAN)
     {
-      islcnt = inscnt;
+      islcnt = inscnt + 1;
       scan_devices (NULL);
     }