Skip to contentSkip to conversation

fix csum_partial_copy_from_user() fault handler

PATCH New Stephan Lachowsky 2 participants 2 messages Oct 29, 2009 – Nov 2, 2009 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix csum_partial_copy_from_user() fault handler

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.

---
 arch/arm/lib/csumpartialcopyuser.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/lib/csumpartialcopyuser.S +1 -1
index 14677fb..afbf3cc 100644
@@ -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
Signature · 1 line
1.6.2.5