Skip to contentSkip to conversation

xilinx_emaclite buffer overrun

PATCH New Clive Stubbings 2 participants 2 messages Oct 27, 2008 – Oct 28, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xilinx_emaclite buffer overrun

Patch to fix buffer allocation size and alignment. Buffer needs to be u32 aligned and PKTSIZE_ALIGN bytes long.

---
 drivers/net/xilinx_emaclite.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/xilinx_emaclite.c +1 -1
index 88cd0f9..0e96ef1 100644
@@ -70,7 +70,7 @@ typedef struct {
 
 static xemaclite emaclite;
 
-static char etherrxbuff[PKTSIZE_ALIGN/4]; /* Receive buffer */
+static u32 etherrxbuff[PKTSIZE_ALIGN/4]; /* Receive buffer */
 
 /* hardcoded MAC address for the Xilinx EMAC Core when env is nowhere*/
 #ifdef CONFIG_ENV_IS_NOWHERE
Signature · 1 line
1.5.6.4
#1 lore raw

PATCH 1/1 xilinx_emaclite buffer overrun

Quoted 6 lines · Clive Stubbings

Patch to fix buffer allocation size and alignment. Buffer needs to be u32 aligned and PKTSIZE_ALIGN bytes long.

---

Added to net repo.

thanks,
Ben