[SERIAL] Magic SysRq SAK does nothing on serial consoles
Make sysrq-K work on serial console by passing in the tty.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index f9fdf97..de2e681 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -415,7 +415,7 @@
#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;
}