* kern/device.c (grub_device_iterate): Clear errors after failed

opening device.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-03-31 22:03:48 +02:00
parent f9fd65df54
commit 495442ed02
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
* kern/device.c (grub_device_iterate): Clear errors after failed
opening device.
2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
* kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if

View file

@ -98,7 +98,10 @@ grub_device_iterate (int (*hook) (const char *name))
dev = grub_device_open (disk_name);
if (! dev)
return 0;
{
grub_errno = GRUB_ERR_NONE;
return 0;
}
if (dev->disk && dev->disk->has_partitions)
{