]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 24 Apr 2013 12:47:14 +0000 (14:47 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 24 Apr 2013 12:47:14 +0000 (14:47 +0200)
ChangeLog
grub-core/disk/ata.c

index d863bb32a09139d91008eaafdff92a3129d1666f..6d9ffdcc1769810727ce164a490ddf576509d3b9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
+
 2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Add missing video ids to coreboot and ieee1275 video.
index c84d316e1f92ac03d88753b528a7563f9aed59a6..dada56d00aa80ba305d070254fb5ee9ec1ed50c6 100644 (file)
@@ -382,6 +382,8 @@ grub_ata_real_open (int id, int bus)
       err = grub_ata_identify (ata);
       if (err)
        {
+         if (!grub_errno)
+           grub_error (GRUB_ERR_UNKNOWN_DEVICE, "no such ATA device");
          grub_free (ata);
          return NULL;
        }