176f649
From 7e1f42417dab20d470d1e45dfa73d00c763d792d Mon Sep 17 00:00:00 2001
176f649
From: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
176f649
Date: Wed, 19 Sep 2012 20:50:38 -0300
176f649
Subject: [PATCH] increase the ieee1275 device path buffer size
176f649
176f649
There are cases when the openfirmware device path is bigger then 64 chars.
176f649
176f649
This should fix this bugzilla:
176f649
https://bugzilla.redhat.com/show_bug.cgi?id=857936
176f649
---
176f649
 grub-core/kern/ieee1275/init.c |    2 +-
176f649
 1 file changed, 1 insertion(+), 1 deletion(-)
176f649
176f649
diff --git a/grub-core/kern/ieee1275/init.c b/grub-core/kern/ieee1275/init.c
176f649
index 7d03a8a..5c45947 100644
176f649
--- a/grub-core/kern/ieee1275/init.c
176f649
+++ b/grub-core/kern/ieee1275/init.c
176f649
@@ -82,7 +82,7 @@ void (*grub_ieee1275_net_config) (const char *dev,
176f649
 void
176f649
 grub_machine_get_bootlocation (char **device, char **path)
176f649
 {
176f649
-  char bootpath[64]; /* XXX check length */
176f649
+  char bootpath[256]; /* Max device path length */
176f649
   char *filename;
176f649
   char *type;
176f649
    
176f649
-- 
176f649
1.7.10.4
176f649