ARM: 8791/1: vfp: use __copy_to_user() when saving VFP state
authorJulien Thierry <julien.thierry@arm.com>
Wed, 13 Feb 2019 21:32:09 +0000 (16:32 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:25:36 +0000 (10:25 +0100)
commit9cad5755b6e208afe1cc9143f167f7555552274e
treefb728487c077e047715f16d7f0c3a1418e65a872
parent3a59b35c3cb88e3fa1f050c34bea2f3f849851b4
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