Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56ebd51b authored by Daniel Jacobowitz's avatar Daniel Jacobowitz Committed by Ralf Baechle
Browse files

[MIPS] Generate SIGILL again


    
The rdhwr emulation accidentally swallowed the SIGILL from most other
illegal instructions.  Make sure to return -EFAULT by default.
    
Signed-off-by: default avatarDaniel Jacobowitz <dan@codesourcery.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent b6c3539b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -534,13 +534,14 @@ static inline int simulate_rdhwr(struct pt_regs *regs)
		switch (rd) {
			case 29:
				regs->regs[rt] = ti->tp_value;
				break;
				return 0;
			default:
				return -EFAULT;
		}
	}

	return 0;
	/* Not ours.  */
	return -EFAULT;
}

asmlinkage void do_ov(struct pt_regs *regs)