sparc32: page align size in arch_dma_alloc
authorAndreas Larsson <andreas@gaisler.com>
Wed, 8 Sep 2021 07:48:22 +0000 (09:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Sep 2021 08:11:06 +0000 (10:11 +0200)
commit54a4860c6257f4575968998939952bd1aa9dcbce
tree7381d513343e8016d82022cd68523708026314a2
parentecf0dc5a904830c926a64feffd8e01141f89822f
sparc32: page align size in arch_dma_alloc

[ Upstream commit 59583f747664046aaae5588d56d5954fab66cce8 ]

Commit 53b7670e5735 ("sparc: factor the dma coherent mapping into
helper") lost the page align for the calls to dma_make_coherent and
srmmu_unmapiorange. The latter cannot handle a non page aligned len
argument.

Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/sparc/kernel/ioport.c