* grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
reserved bytes. * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise. * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise. Handle malloc error correctly.
This commit is contained in:
parent
cde393c9a3
commit
531e2241a6
4 changed files with 15 additions and 6 deletions
|
@ -52,7 +52,7 @@ get_card_packet (struct grub_net_card *dev __attribute__ ((unused)))
|
|||
ssize_t actual;
|
||||
struct grub_net_buff *nb;
|
||||
|
||||
nb = grub_netbuff_alloc (1536);
|
||||
nb = grub_netbuff_alloc (1536 + 2);
|
||||
if (!nb)
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue