PATCH: Re: [U-Boot-Users] malloc with no return check?

Travis B. Sawyer tsawyer+u-boot at sandburst.com
Tue Jul 19 04:22:39 CEST 2005


Andrew Dyer wrote:
> I noticed the au1xxx ethernet driver has a malloc where the return
> value isn't checked.
> I did some more looking while waiting for a slow flash programmer and at least
> these files seem to do the same thing:
> 
> ./cpu/ppc4xx/440gx_enet.c
> 

Here's a patch to fix 440gx_enet.c

CHANGELOG
Patch by Travis B. Sawyer, 18 July 2005
Check return value of malloc in 440gx_enet.c

Best regards,

Travis

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 440gx_malloc_fix.patch
Url: http://lists.denx.de/pipermail/u-boot/attachments/20050718/e960ba8a/attachment.txt 


More information about the U-Boot mailing list