On Tuesday, March 08, 2011 09:25:52 Michal Simek wrote:
> +int xilinx_axiemac_initialize(bd_t *bis, int base_addr, int dma_addr)
> +{
> +     struct eth_device *dev;
> +     struct axidma_priv *dma;
> +
> +     dev = calloc(1, sizeof(struct eth_device));
> +     if (dev == NULL)
> +             return -1;
> +
> +     dev->priv = calloc(1, sizeof(struct axidma_priv));
> +     if (dev->priv == NULL)
> +             return -1;

this 2nd error checker should call free(dev).  the rest is copacetic.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to