]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec: use managed DMA API functions to allocate BD ring
authorLucas Stach <l.stach@pengutronix.de>
Thu, 23 Jul 2015 14:06:19 +0000 (16:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2015 04:51:53 +0000 (21:51 -0700)
commit2e533456ce72d865097bf28fae972c270df97c08
treeba5bdb87fb73417b41e54df0523237b3c247d489
parent1bf4f868578f182f209cd884d7f6498623444d91
net: fec: use managed DMA API functions to allocate BD ring

So it gets freed when the device is going away.
This fixes a DMA memory leak on driver probe() fail and driver
remove().

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c