mic: vop: copy data to kernel space then write to io memory
authorSherry Sun <sherry.sun@nxp.com>
Tue, 29 Sep 2020 09:11:06 +0000 (17:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 08:05:43 +0000 (09:05 +0100)
commitb0b36f6ecc129a35c3f2cdec8c68afd64a999b26
tree3b6d2db890ae1c779a6c000535a73a3d09d464f9
parentf3467a49b545333666e824b0beb64b4aa4b42b37
mic: vop: copy data to kernel space then write to io memory

[ Upstream commit 675f0ad4046946e80412896436164d172cd92238 ]

Read and write io memory should address align on ARCH ARM. Change to use
memcpy_toio to avoid kernel panic caused by the address un-align issue.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Link: https://lore.kernel.org/r/20200929091106.24624-5-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/mic/vop/vop_vringh.c