From e343549ca976d95d713fa957b1e986eda8363d8f Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Wed, 24 Apr 2013 14:47:14 +0200 Subject: [PATCH] * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly. --- ChangeLog | 4 ++++ grub-core/disk/ata.c | 2 ++ 2 files changed, 6 insertions(+) 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; }