From: Mike Frysinger Date: Sun, 24 Jan 2010 05:59:48 -0500 Subject: [U-Boot] [PATCH 04/12] fec_mxc: Fix return values of fec_probe() In-Reply-To: <20100124100729.GJ18402@darwin> References: <20100124100729.GJ18402@darwin> Message-ID: <201001240559.49192.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sunday 24 January 2010 05:07:29 Matthias Kaehlcke wrote: > --- a/drivers/net/fec_mxc.c > +++ b/drivers/net/fec_mxc.c > @@ -667,7 +667,7 @@ static int fec_probe(bd_t *bd) > edev = (struct eth_device *)malloc(sizeof(struct eth_device)); > if (!edev) { > puts("fec_imx27: not enough malloc memory!\n"); > - return -ENOMEM; > + return 0; > } error path should return -1, not 0 -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20100124/3bf31079/attachment.pgp