]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ARM: 8791/1: vfp: use __copy_to_user() when saving VFP state
authorJulien Thierry <julien.thierry@arm.com>
Thu, 14 Feb 2019 02:10:08 +0000 (21:10 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:20:45 +0000 (10:20 +0100)
commit6d3ccf78e2867718c400a0a0e773adac721a470b
treec656c09d641403f79a42e32001bca37264635b84
parenta26e4c1f48b7f1f666a78a9805dce6641220d03b
ARM: 8791/1: vfp: use __copy_to_user() when saving VFP state

Commit 3aa2df6ec2ca6bc143a65351cca4266d03a8bc41 upstream.

Use __copy_to_user() rather than __put_user_error() for individual
members when saving VFP state.
This has the benefit of disabling/enabling PAN once per copied struct
intead of once per write.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David A. Long <dave.long@linaro.org>
Reviewed-by: Julien Thierry <julien.thierry@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/include/asm/thread_info.h
arch/arm/kernel/signal.c
arch/arm/vfp/vfpmodule.c