Re: [U-Boot] [PATCH] Net: FEC: Fix huge memory leak

2013-11-21 Thread Stefano Babic
Hi Marek, On 12/10/2013 20:36, Marek Vasut wrote: > The fec_halt() never free'd both RX and TX DMA descriptors that > were allocated in fec_init(), nor did it free the RX buffers. > Rework the FEC driver so that these descriptors and buffers are > allocated only once in fec_probe(). > > Signed-of

[U-Boot] [PATCH] Net: FEC: Fix huge memory leak

2013-10-12 Thread Marek Vasut
The fec_halt() never free'd both RX and TX DMA descriptors that were allocated in fec_init(), nor did it free the RX buffers. Rework the FEC driver so that these descriptors and buffers are allocated only once in fec_probe(). Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Stefano Babic --- d