summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/lib/user_fixup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc64/lib/user_fixup.c')
-rw-r--r--arch/sparc64/lib/user_fixup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc64/lib/user_fixup.c b/arch/sparc64/lib/user_fixup.c
index 19d1fdb17d0..05a361b0a1a 100644
--- a/arch/sparc64/lib/user_fixup.c
+++ b/arch/sparc64/lib/user_fixup.c
@@ -24,7 +24,7 @@ static unsigned long compute_size(unsigned long start, unsigned long size, unsig
if (fault_addr < start || fault_addr >= end) {
*offset = 0;
} else {
- *offset = start - fault_addr;
+ *offset = fault_addr - start;
size = end - fault_addr;
}
return size;