]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: spider_net: Fix the size used in a 'dma_free_coherent()' call
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 2 Aug 2020 13:53:33 +0000 (15:53 +0200)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 4 Sep 2020 19:29:22 +0000 (16:29 -0300)
commitdb1908456dc12c967c609dec63d3211eb31f02cc
tree34a1501ad99c1e2233ba3879c46f95fad40c208b
parent7785aa2a238d0651327135063e8a4d584dec73e6
net: spider_net: Fix the size used in a 'dma_free_coherent()' call

BugLink: https://bugs.launchpad.net/bugs/1892417
[ Upstream commit 36f28f7687a9ce665479cce5d64ce7afaa9e77ae ]

Update the size used in 'dma_free_coherent()' in order to match the one
used in the corresponding 'dma_alloc_coherent()', in
'spider_net_init_chain()'.

Fixes: d4ed8f8d1fb7 ("Spidernet DMA coalescing")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/ethernet/toshiba/spider_net.c