From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Dyer Date: Tue, 26 Jul 2005 13:53:47 -0500 Subject: [U-Boot-Users] PATCH: au1x00_eth.c (was Re: malloc with no return check?) In-Reply-To: References: Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 7/18/05, 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: > 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... ChangeLog 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