]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8810/1: vfp: Fix wrong assignement to ufp_exc
authorJulien Thierry <julien.thierry@arm.com>
Thu, 8 Nov 2018 16:25:28 +0000 (17:25 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Mon, 12 Nov 2018 10:51:01 +0000 (10:51 +0000)
commit1ce30c47ac1c46fe1c3aba5367705923a0e664ef
tree84551a2554ddc26eb8330ad3a018ac9e5d362247
parenta6b83d6ad4355615c07149662d30ec09f7a47778
ARM: 8810/1: vfp: Fix wrong assignement to ufp_exc

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 50c124fbf5d92dc34265862b6a356c04727b8199 ("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>
arch/arm/vfp/vfpmodule.c