]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/parisc/mm/fault.c
Merge remote-tracking branch 'sound/for-next'
[karo-tx-linux.git] / arch / parisc / mm / fault.c
index 0293588d5b8cb8e2d594406c51bbb524b319888b..df0d32971cdf0ec232d6ba5b5dd40394a4158529 100644 (file)
@@ -142,6 +142,12 @@ int fixup_exception(struct pt_regs *regs)
 {
        const struct exception_table_entry *fix;
 
+       /* If we only stored 32bit addresses in the exception table we can drop
+        * out if we faulted on a 64bit address. */
+       if ((sizeof(regs->iaoq[0]) > sizeof(fix->insn))
+               && (regs->iaoq[0] >> 32))
+                       return 0;
+
        fix = search_exception_tables(regs->iaoq[0]);
        if (fix) {
                struct exception_data *d;