net/drivers/ieee1275/ofnet: Add missing grub_malloc()
The grub_malloc() has been inadvertently removed from the code after it has been modified to use safe math functions. Fixes: 4beeff8a (net: Use safe math macros to prevent overflows) Signed-off-by: Nicolas Frayer <nfrayer@redhat.com> Tested-by: Marta Lewandowska <mlewando@redhat.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
fee6081ec7
commit
3b25e494d4
@ -463,6 +463,9 @@ search_net_devices (struct grub_ieee1275_devalias *alias)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ofdata->path = grub_malloc (sz);
|
||||||
|
|
||||||
if (!ofdata->path)
|
if (!ofdata->path)
|
||||||
{
|
{
|
||||||
grub_print_error ();
|
grub_print_error ();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user