ARM: 8791/1: vfp: use __copy_to_user() when saving VFP state
authorJulien Thierry <julien.thierry@arm.com>
Thu, 14 Feb 2019 14:49:16 +0000 (09:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:18:25 +0000 (10:18 +0100)
commit6f86d531974af18e090969ab68a47d10b8895a72
tree52d26a89cbedbe51aecd8f6ce748fbbb37a5830a
parent31ac7816a46854f3ac0d072dbcef91db5c14f490
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