]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: 8810/1: vfp: Fix wrong assignement to ufp_exc
authorJulien Thierry <julien.thierry@arm.com>
Thu, 14 Feb 2019 14:49:23 +0000 (09:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:18:26 +0000 (10:18 +0100)
commitc3ef8953d83c8043dcfa496e241c5d01bb05fe6e
treece61f814484011e09d9d5090debbd66f9180aae0
parente4a6ea8a33301760580f17d1e2fd7789e20d1fe8
ARM: 8810/1: vfp: Fix wrong assignement to ufp_exc

Commit 5df7a99bdd0de4a0480320264c44c04543c29d5a upstream.

In vfp_preserve_user_clear_hwstate, ufp_exc->fpinst2 gets assigned to
itself. It should actually be hwstate->fpinst2 that gets assigned to the
ufp_exc field.

Fixes commit 3aa2df6ec2ca6bc143a65351cca4266d03a8bc41 ("ARM: 8791/1:
vfp: use __copy_to_user() when saving VFP state").

Reported-by: David Binderman <dcb314@hotmail.com>
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/vfp/vfpmodule.c