Thread (2 messages) 2 messages, 2 authors, 2009-11-02

[PATCH] [ARM] fix csum_partial_copy_from_user() fault handler

From: Stephan Lachowsky <hidden>
Date: 2009-10-29 18:51:18
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

The framepointer setup for csum_partial_copy_from_user() was removed in
22acc4e65043d436bc286e6059960fa533e37356.  The fault handler needs to use
an offset from the stack pointer instead.

Signed-off-by: Stephan Lachowsky <redacted>
---
 arch/arm/lib/csumpartialcopyuser.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/lib/csumpartialcopyuser.S b/arch/arm/lib/csumpartialcopyuser.S
index 14677fb..afbf3cc 100644
--- a/arch/arm/lib/csumpartialcopyuser.S
+++ b/arch/arm/lib/csumpartialcopyuser.S
@@ -93,7 +93,7 @@
 		.section .fixup,"ax"
 		.align	4
 9001:		mov	r4, #-EFAULT
-		ldr	r5, [fp, #4]		@ *err_ptr
+		ldr	r5, [sp, #32]		@ *err_ptr
 		str	r4, [r5]
 		ldmia	sp, {r1, r2}		@ retrieve dst, len
 		add	r2, r2, r1
-- 
1.6.2.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help