]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 24 Sep 2013 16:36:51 +0000 (18:36 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 24 Sep 2013 16:36:51 +0000 (18:36 +0200)
disk closing logic.

ChangeLog
grub-core/kern/emu/hostdisk.c

index 73c33e8906bcf4a4970aeb9909df6577f5544c56..6ebd77ac934d0f7da2cae570527509229da85ddc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-24  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
+       disk closing logic.
+
 2013-09-24  Andrey Borzenkov <arvidjaar@gmail.com>
 
        * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
index cbf50771f0250ef3cdda5eb6167627edbfce763c..260362fa8617e3274c6a970b6a07c1e9dda5be32 100644 (file)
@@ -422,7 +422,7 @@ grub_util_biosdisk_close (struct grub_disk *disk)
   struct grub_util_hostdisk_data *data = disk->data;
 
   free (data->dev);
-  if (!GRUB_UTIL_FD_IS_VALID (data->fd))
+  if (GRUB_UTIL_FD_IS_VALID (data->fd))
     {
       if (data->access_mode == O_RDWR || data->access_mode == O_WRONLY)
        grub_util_biosdisk_flush (disk);