From mboxrd@z Thu Jan 1 00:00:00 1970 From: Travis B. Sawyer Date: Mon, 18 Jul 2005 22:22:39 -0400 Subject: PATCH: Re: [U-Boot-Users] malloc with no return check? In-Reply-To: References: Message-ID: <42DC63EF.2020507@sandburst.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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