diff options
Diffstat (limited to 'kernel/arch/s390/mm/extable.c')
-rw-r--r-- | kernel/arch/s390/mm/extable.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel/arch/s390/mm/extable.c b/kernel/arch/s390/mm/extable.c index 4d1ee8886..18c8b819b 100644 --- a/kernel/arch/s390/mm/extable.c +++ b/kernel/arch/s390/mm/extable.c @@ -52,12 +52,16 @@ void sort_extable(struct exception_table_entry *start, int i; /* Normalize entries to being relative to the start of the section */ - for (p = start, i = 0; p < finish; p++, i += 8) + for (p = start, i = 0; p < finish; p++, i += 8) { p->insn += i; + p->fixup += i + 4; + } sort(start, finish - start, sizeof(*start), cmp_ex, NULL); /* Denormalize all entries */ - for (p = start, i = 0; p < finish; p++, i += 8) + for (p = start, i = 0; p < finish; p++, i += 8) { p->insn -= i; + p->fixup -= i + 4; + } } #ifdef CONFIG_MODULES |