[U-Boot] [PATCH 7/8] net: emaclite: Free allocated space for device

Mike Frysinger vapier at gentoo.org
Fri Aug 26 21:25:10 CEST 2011


On Friday, August 26, 2011 08:47:22 Michal Simek wrote:
> --- a/drivers/net/xilinx_emaclite.c
> +++ b/drivers/net/xilinx_emaclite.c
> @@ -356,8 +356,10 @@ int xilinx_emaclite_initialize (bd_t *bis, int
> base_addr) return -1;
> 
>  	emaclite = calloc(1, sizeof(struct xemaclite));
> -	if (emaclite == NULL)
> +	if (emaclite == NULL) {
> +		free(dev);
>  		return -1;
> +	}

since this bug was introduced by your patch 5/8, please squash it into that 
rather than sending out a known buggy one
-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/20110826/d0510c9a/attachment.pgp 


More information about the U-Boot mailing list