mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-21 18:39:43 +09:00
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>
This commit is contained in:
parent
0115b19537
commit
f2a7806fc2
@ -70,7 +70,7 @@ typedef struct {
|
|||||||
|
|
||||||
static xemaclite emaclite;
|
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*/
|
/* hardcoded MAC address for the Xilinx EMAC Core when env is nowhere*/
|
||||||
#ifdef CONFIG_ENV_IS_NOWHERE
|
#ifdef CONFIG_ENV_IS_NOWHERE
|
||||||
|
Loading…
Reference in New Issue
Block a user