[U-Boot-Users] PATCH: au1x00_eth.c (was Re: malloc with no return check?)

Andrew Dyer amdyer at gmail.com
Tue Jul 26 20:53:47 CEST 2005

On 7/18/05, Andrew Dyer <amdyer at gmail.com> 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:

here's a patch for the au1x00_eth.c.  I have a lot of other local changes
to this file (mii support), so I hope my editing the patch won't make it
not apply...

au1x00_eth.c: check malloc return value and abort if it failed

Hardware, n.:
        The parts of a computer system that can be kicked.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot-au1x00_eth.c-malloc.diff
Type: text/x-patch
Size: 750 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050726/78b1c4d7/attachment.bin 

More information about the U-Boot mailing list