* [U-Boot] [PATCH] xilinx_emaclite buffer overrun
@ 2008-10-27 15:05 Clive Stubbings
2008-10-28 7:07 ` Ben Warren
0 siblings, 1 reply; 2+ messages in thread
From: Clive Stubbings @ 2008-10-27 15:05 UTC (permalink / raw)
To: u-boot
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>
---
drivers/net/xilinx_emaclite.c | 2 +-
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
--
1.5.6.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] xilinx_emaclite buffer overrun
2008-10-27 15:05 [U-Boot] [PATCH] xilinx_emaclite buffer overrun Clive Stubbings
@ 2008-10-28 7:07 ` Ben Warren
0 siblings, 0 replies; 2+ messages in thread
From: Ben Warren @ 2008-10-28 7:07 UTC (permalink / raw)
To: u-boot
Clive Stubbings wrote:
> 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>
>
> ---
Added to net repo.
thanks,
Ben
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-28 7:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-27 15:05 [U-Boot] [PATCH] xilinx_emaclite buffer overrun Clive Stubbings
2008-10-28 7:07 ` Ben Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox