[U-Boot] xilinx_emaclite buffer overrun
Michal Simek
monstr at seznam.cz
Thu Oct 23 21:50:58 CEST 2008
Hi Clive,
yes. but I think that better will be
static uchar etherrxbuff[PKTSIZE_ALIGN]; /* Receive buffer */
Regards,
Michal
> Hi
>
> Looks like there is a buffer allocation error in the packet buffer for the
> xilinx emaclite.
>
>
> 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
>
> Cheers
> Clive
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
More information about the U-Boot
mailing list