ARM: vfp: Fix wrong assignement to ufp_exc
Subsystems (2)
PATCH 1/1 ARM: 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 3aa2df6ec2ca6bc143a65351cca4266d03a8bc41 ("ARM: 8791/1:
vfp: use __copy_to_user() when saving VFP state").
--- arch/arm/vfp/vfpmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/vfp/vfpmodule.c +1 -1
@@ -573,7 +573,7 @@ int vfp_preserve_user_clear_hwstate(struct user_vfp *ufp,*/ ufp_exc->fpexc = hwstate->fpexc; ufp_exc->fpinst = hwstate->fpinst; - ufp_exc->fpinst2 = ufp_exc->fpinst2; + ufp_exc->fpinst2 = hwstate->fpinst2;/* Ensure that VFP is disabled. */ vfp_flush_hwstate (thread);
Signature · 1 line
1.9.1
Russell King - ARM Linux
maintainerPATCH 1/1 ARM: vfp: Fix wrong assignement to ufp_exc
Quoted 10 lines · Julien Thierry
In
vfp_preserve_user_clear_hwstate,ufp_exc->fpinst2gets assigned to itself. It should actually behwstate->fpinst2that gets assigned to theufp_excfield.Fixes commit
3aa2df6ec2ca6bc143a65351cca4266d03a8bc41("ARM: 8791/1:
vfp: use__copy_to_user()when saving VFP state").Reported-by David Binderman <[email protected]>Signed-off-by Julien Thierry <[email protected]>Cc Russell King <[email protected]>
Please put this in the patch system, thanks.
Quoted 20 lines
--- arch/arm/vfp/vfpmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/vfp/vfpmodule.c +1
-1@@ -573,7 +573,7 @@ int vfp_preserve_user_clear_hwstate(struct user_vfp *ufp,*/ ufp_exc->fpexc = hwstate->fpexc; ufp_exc->fpinst = hwstate->fpinst; - ufp_exc->fpinst2 = ufp_exc->fpinst2; + ufp_exc->fpinst2 = hwstate->fpinst2;/* Ensure that VFP is disabled. */ vfp_flush_hwstate (thread);Signature · 1 line
1.9.1
Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up
PATCH 1/1 ARM: vfp: Fix wrong assignement to ufp_exc
Hi Russell,
Quoted 5 lines · Russell King - ARM Linux
Quoted 4 lines · Julien Thierry
In
vfp_preserve_user_clear_hwstate,ufp_exc->fpinst2gets assigned to itself. It should actually behwstate->fpinst2that gets assigned to theufp_excfield.
Quoted 8 lines
Quoted 6 lines
Fixes commit
3aa2df6ec2ca6bc143a65351cca4266d03a8bc41("ARM: 8791/1:
vfp: use__copy_to_user()when saving VFP state").Reported-by David Binderman <[email protected]>Signed-off-by Julien Thierry <[email protected]>Cc Russell King <[email protected]>Please put this in the patch system, thanks.
It is done.
Thanks,
Quoted 22 lines
Quoted 21 lines
--- arch/arm/vfp/vfpmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/vfp/vfpmodule.c +1
-1@@ -573,7 +573,7 @@ int vfp_preserve_user_clear_hwstate(struct user_vfp *ufp,*/ ufp_exc->fpexc = hwstate->fpexc; ufp_exc->fpinst = hwstate->fpinst; - ufp_exc->fpinst2 = ufp_exc->fpinst2; + ufp_exc->fpinst2 = hwstate->fpinst2;/* Ensure that VFP is disabled. */ vfp_flush_hwstate (thread);Signature · 1 line
1.9.1
Signature · 1 line
Julien Thierry