Skip to content
Snippets Groups Projects
Commit f2a7806f authored by Clive Stubbings's avatar Clive Stubbings Committed by Ben Warren
Browse files

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: default avatarMichal Simek <monstr@monstr.eu>

Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
parent 0115b195
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment