[Regression,2.6.35-rc1?] Sysrq works too well (no need of alt)
diff mbox

Message ID 20100609083014.GA13304@core.coreip.homeip.net
State Accepted
Commit f5dec51172b81db226a23f309bc737ad021af35b
Headers show

Commit Message

Dmitry Torokhov June 9, 2010, 8:30 a.m. UTC
None

Patch
diff mbox

diff --git a/drivers/char/sysrq.c b/drivers/char/sysrq.c
index c046075..5bf3618 100644
--- a/drivers/char/sysrq.c
+++ b/drivers/char/sysrq.c
@@ -579,8 +579,12 @@  static bool sysrq_filter(struct input_handle *handle, unsigned int type,
 	case KEY_RIGHTALT:
 		if (value)
 			sysrq_alt = code;
-		else if (sysrq_down && code == sysrq_alt_use)
-			sysrq_down = false;
+		else {
+			if (sysrq_down && code == sysrq_alt_use)
+				sysrq_down = false;
+
+			sysrq_alt = 0;
+		}
 		break;
 
 	case KEY_SYSRQ: