* grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more

than buffer size.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-04-12 19:25:16 +02:00
parent a3d566d442
commit b7d17a492f
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
than buffer size.
2013-04-12 Vladimir Serbinenko <phcoder@gmail.com> 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
Disable partmap check on i386-ieee1275 due to openfirmware issues. Disable partmap check on i386-ieee1275 due to openfirmware issues.

View file

@ -79,7 +79,7 @@ send_card_buffer (struct grub_net_card *dev, struct grub_net_buff *pack)
grub_memcpy (dev->txbuf, pack->data, len); grub_memcpy (dev->txbuf, pack->data, len);
status = grub_ieee1275_write (data->handle, dev->txbuf, status = grub_ieee1275_write (data->handle, dev->txbuf,
pack->tail - pack->data, &actual); len, &actual);
if (status) if (status)
return grub_error (GRUB_ERR_IO, N_("couldn't send network packet")); return grub_error (GRUB_ERR_IO, N_("couldn't send network packet"));