From f9fd65df54d5f114a0f33ac30f49c6b2226ded30 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Wed, 31 Mar 2010 22:01:37 +0200 Subject: [PATCH] * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if returned by firmware. --- ChangeLog | 5 +++++ kern/ieee1275/openfw.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5367493a2..d05dd5a7d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-03-31 Vladimir Serbinenko + + * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if + returned by firmware. + 2010-03-30 Vladimir Serbinenko * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix diff --git a/kern/ieee1275/openfw.c b/kern/ieee1275/openfw.c index ae1eb5522..cf9e1a870 100644 --- a/kern/ieee1275/openfw.c +++ b/kern/ieee1275/openfw.c @@ -73,10 +73,16 @@ grub_children_iterate (char *devpath, IEEE1275_MAX_PROP_LEN, &actual)) childtype[0] = 0; + if (dev == child) + continue; + if (grub_ieee1275_package_to_path (child, childpath, IEEE1275_MAX_PATH_LEN, &actual)) continue; + if (grub_strcmp (devpath, childpath) == 0) + continue; + if (grub_ieee1275_get_property (child, "name", childname, IEEE1275_MAX_PROP_LEN, &actual)) continue;