2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>

* kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
	error.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-02-06 00:30:25 +01:00
parent 2b4068e992
commit 4f8528fc2b
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
* kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
error.
2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
* util/hostdisk.c (open_device): Don't use partition device when reading

View file

@ -135,7 +135,7 @@ grub_devalias_iterate (int (*hook) (struct grub_ieee1275_devalias *alias))
/* Find the first property. */
aliasname[0] = '\0';
while (grub_ieee1275_next_property (aliases, aliasname, aliasname))
while (grub_ieee1275_next_property (aliases, aliasname, aliasname) > 0)
{
grub_ieee1275_phandle_t dev;
grub_ssize_t pathlen;