Skip to content
  • Marek Vasut's avatar
    Net: FEC: Fix huge memory leak · 79e5f27b
    Marek Vasut authored
    
    
    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: default avatarMarek Vasut <marex@denx.de>
    Cc: Fabio Estevam <fabio.estevam@freescale.com>
    Cc: Stefano Babic <sbabic@denx.de>
    79e5f27b