]> 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)
commit97a5b1b1b9f234b0eca313b55b184d301ce15796
treece123536138d57d9732e6741584f22124c0be9a6
parent1418a08c3dfa20a7f8af022f4f159d2780becdbb
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