mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 23:02:40 +00:00
* grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
to continue if allocation is failed. Reported by: David Volgyes <dvolgyes>.
This commit is contained in:
1 parent
e98c83e910
commit
fbc626665f
2 files changed
+12
-5
No files matched your search
@@ -452,11 +452,11 @@ grub_cpu_xnu_fill_devprop (void)
|
||||
}
|
||||
|
||||
devprop = grub_xnu_create_value (&(efikey->first_child), "device-properties");
|
||||
if (devprop)
|
||||
{
|
||||
devprop->data = grub_malloc (total_length);
|
||||
devprop->datasize = total_length;
|
||||
}
|
||||
if (!devprop)
|
||||
return grub_errno;
|
||||
|
||||
devprop->data = grub_malloc (total_length);
|
||||
devprop->datasize = total_length;
|
||||
|
||||
ptr = devprop->data;
|
||||
head = ptr;
|
||||
|
||||
Reference in new issue
Block a user