]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: atm: nicstar: Use the correct function to free some resources
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Sun, 17 Jul 2016 07:03:24 +0000 (09:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jul 2016 18:30:26 +0000 (11:30 -0700)
commit57c91773b00f10b914b3d14e15ac5f9c1aae6fb4
treece123536138d57d9732e6741584f22124c0be9a6
parent214725b7920a075099734ed5d59daf7c11b21801
drivers: atm: nicstar: Use the correct function to free some resources

In 'get_scq', 'dma_alloc_coherent' has been used to allocate some
resources, so we need to free them using 'dma_free_coherent' instead
of 'kfree'.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/nicstar.c