summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorClive Stubbings <uboot@xentech.co.uk>2008-10-27 15:05:00 +0000
committerBen Warren <biggerbadderben@gmail.com>2008-11-09 21:38:02 -0800
commitf2a7806fc23e82d30c8548911369e0c530607354 (patch)
tree11150d6189007a7f3b7122306320b0f9947349d8 /drivers
parent0115b1953718a2969f6469d3d5da51ba11e12d42 (diff)
downloadu-boot-imx-f2a7806fc23e82d30c8548911369e0c530607354.zip
u-boot-imx-f2a7806fc23e82d30c8548911369e0c530607354.tar.gz
u-boot-imx-f2a7806fc23e82d30c8548911369e0c530607354.tar.bz2
xilinx_emaclite buffer overrun
Patch to fix buffer allocation size and alignment. Buffer needs to be u32 aligned and PKTSIZE_ALIGN bytes long. Acked-by: Michal Simek <monstr@monstr.eu> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/xilinx_emaclite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c
index 88cd0f9..0e96ef1 100644
--- a/drivers/net/xilinx_emaclite.c
+++ b/drivers/net/xilinx_emaclite.c
@@ -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