+2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
+ presence check.
+ (grub_ieee1275_net_config_real): Fix config pointer.
+
2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
do
rc = grub_ieee1275_read (data->handle, nb->data, dev->mtu + 64, &actual);
while ((actual <= 0 || rc < 0) && (grub_get_time_ms () - start_time < 200));
- if (actual)
+ if (actual > 0)
{
grub_netbuff_put (nb, actual);
return nb;
grub_net_configure_by_dhcp_ack (card->name, card, 0,
(struct grub_net_bootp_packet *)
- &bootp_response
- + bootp_response_properties[i].offset,
+ (bootp_response
+ + bootp_response_properties[i].offset),
size - bootp_response_properties[i].offset,
1, device, path);
return;