From 975146895ca46b0c9dca1481d366c6a054aed851 Mon Sep 17 00:00:00 2001 From: phcoder Date: Fri, 4 Sep 2009 13:50:32 +0000 Subject: [PATCH] missing part of previous commit --- loader/i386/xnu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/loader/i386/xnu.c b/loader/i386/xnu.c index 39b02c7a3..275b50dbc 100644 --- a/loader/i386/xnu.c +++ b/loader/i386/xnu.c @@ -258,7 +258,7 @@ grub_cpu_xnu_fill_devicetree (void) 2 * (utf16_strlen (SYSTEM_TABLE_PTR (firmware_vendor)) + 1); curval->data = grub_malloc (curval->datasize); if (! curval->data) - return grub_error (GRUB_ERR_OUT_OF_MEMORY, "couldn't create device tree"); + return grub_errno; grub_memcpy (curval->data, SYSTEM_TABLE_PTR (firmware_vendor), curval->datasize); @@ -362,8 +362,7 @@ grub_cpu_xnu_fill_devicetree (void) curval->datasize = sizeof (guid); curval->data = grub_malloc (curval->datasize); if (! curval->data) - return grub_error (GRUB_ERR_OUT_OF_MEMORY, - "couldn't create device tree"); + return grub_errno; grub_memcpy (curval->data, &guid, curval->datasize); /* The value "table". */