parisc: Clear stale IIR value on instruction access rights trap
[platform/kernel/linux-rpi.git] / arch / parisc / kernel / traps.c
index 747c328..197cb84 100644 (file)
@@ -729,6 +729,8 @@ void notrace handle_interruption(int code, struct pt_regs *regs)
                        }
                        mmap_read_unlock(current->mm);
                }
+               /* CPU could not fetch instruction, so clear stale IIR value. */
+               regs->iir = 0xbaadf00d;
                fallthrough;
        case 27: 
                /* Data memory protection ID trap */