diff --git a/ChangeLog b/ChangeLog index d863bb32a..6d9ffdcc1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-04-24 Vladimir Serbinenko + + * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly. + 2013-04-24 Vladimir Serbinenko Add missing video ids to coreboot and ieee1275 video. diff --git a/grub-core/disk/ata.c b/grub-core/disk/ata.c index c84d316e1..dada56d00 100644 --- a/grub-core/disk/ata.c +++ b/grub-core/disk/ata.c @@ -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; }