Message ID | 20100609083014.GA13304@core.coreip.homeip.net (mailing list archive) |
---|---|
State | Accepted |
Commit | f5dec51172b81db226a23f309bc737ad021af35b |
Headers | show |
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: