net: pch_gbe: Use 'dma_free_coherent()' to undo 'dma_alloc_coherent()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 21 Nov 2020 09:03:30 +0000 (10:03 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Nov 2020 01:01:48 +0000 (17:01 -0800)
commit7fd6372e273e67d6d8b49a3cd8d9a00b44d92e97
tree27ad91a6e4ff5ab522b290dd3dcc28bef1595ded
parent8ff39301efd9d21cd62caad3504aa8d6e35d8304
net: pch_gbe: Use 'dma_free_coherent()' to undo 'dma_alloc_coherent()'

Memory allocation are done with 'dma_alloc_coherent()'. Be consistent
and use 'dma_free_coherent()' to free the corresponding memory.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20201121090330.1332543-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c