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

Commit d8d64d6b authored by Simon Tatham's avatar Simon Tatham Committed by Russell King
Browse files

[SERIAL] Magic SysRq SAK does nothing on serial consoles



Make sysrq-K work on serial console by passing in the tty.

Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent e480af09
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -415,7 +415,7 @@ uart_handle_sysrq_char(struct uart_port *port, unsigned int ch,
#ifdef SUPPORT_SYSRQ
	if (port->sysrq) {
		if (ch && time_before(jiffies, port->sysrq)) {
			handle_sysrq(ch, regs, NULL);
			handle_sysrq(ch, regs, port->info->tty);
			port->sysrq = 0;
			return 1;
		}