|
|
f96e0b |
From 1776464a786731863fd93bf4ce8171063673dec1 Mon Sep 17 00:00:00 2001
|
|
|
f96e0b |
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
Date: Fri, 12 Apr 2013 19:25:16 +0200
|
|
|
f96e0b |
Subject: [PATCH 290/482] * grub-core/net/drivers/ieee1275/ofnet.c:
|
|
|
f96e0b |
Don't attempt to send more than buffer size.
|
|
|
f96e0b |
|
|
|
f96e0b |
---
|
|
|
f96e0b |
ChangeLog | 5 +++++
|
|
|
f96e0b |
grub-core/net/drivers/ieee1275/ofnet.c | 2 +-
|
|
|
f96e0b |
2 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
f96e0b |
|
|
|
f96e0b |
diff --git a/ChangeLog b/ChangeLog
|
|
|
f96e0b |
index 1f6ad7c..ced68cc 100644
|
|
|
f96e0b |
--- a/ChangeLog
|
|
|
f96e0b |
+++ b/ChangeLog
|
|
|
f96e0b |
@@ -1,5 +1,10 @@
|
|
|
f96e0b |
2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
|
|
|
f96e0b |
+ * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
|
|
|
f96e0b |
+ than buffer size.
|
|
|
f96e0b |
+
|
|
|
f96e0b |
+2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
+
|
|
|
f96e0b |
Disable partmap check on i386-ieee1275 due to openfirmware issues.
|
|
|
f96e0b |
|
|
|
f96e0b |
2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
diff --git a/grub-core/net/drivers/ieee1275/ofnet.c b/grub-core/net/drivers/ieee1275/ofnet.c
|
|
|
f96e0b |
index 1acfb73..cd9b159 100644
|
|
|
f96e0b |
--- a/grub-core/net/drivers/ieee1275/ofnet.c
|
|
|
f96e0b |
+++ b/grub-core/net/drivers/ieee1275/ofnet.c
|
|
|
f96e0b |
@@ -79,7 +79,7 @@ send_card_buffer (struct grub_net_card *dev, struct grub_net_buff *pack)
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_memcpy (dev->txbuf, pack->data, len);
|
|
|
f96e0b |
status = grub_ieee1275_write (data->handle, dev->txbuf,
|
|
|
f96e0b |
- pack->tail - pack->data, &actual);
|
|
|
f96e0b |
+ len, &actual);
|
|
|
f96e0b |
|
|
|
f96e0b |
if (status)
|
|
|
f96e0b |
return grub_error (GRUB_ERR_IO, N_("couldn't send network packet"));
|
|
|
f96e0b |
--
|
|
|
f96e0b |
1.8.2.1
|
|
|
f96e0b |
|