]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 12 Apr 2013 17:25:16 +0000 (19:25 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 12 Apr 2013 17:25:16 +0000 (19:25 +0200)
than buffer size.

ChangeLog
grub-core/net/drivers/ieee1275/ofnet.c

index 1f6ad7c0e97c590aba9ebd0f0c014a3b9ea1b58c..ced68cc386d3ea4194a4f90efef6bce345bbcbaa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        Disable partmap check on i386-ieee1275 due to openfirmware issues.
index 1acfb73fb35d99162deabf3a1d458533471d691c..cd9b159c78141f925601278dfbd224d4b4a6ff97 100644 (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);
   status = grub_ieee1275_write (data->handle, dev->txbuf,
-                               pack->tail - pack->data, &actual);
+                               len, &actual);
 
   if (status)
     return grub_error (GRUB_ERR_IO, N_("couldn't send network packet"));