From: Clive Stubbings Date: Mon, 27 Oct 2008 15:05:00 +0000 (+0000) Subject: xilinx_emaclite buffer overrun X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=f2a7806fc23e82d30c8548911369e0c530607354;p=u-boot.git 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 Signed-off-by: Ben Warren --- diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c index 88cd0f9ff4..0e96ef184a 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