Input: sysrq - rework re-inject logic
commit41f834826b678e383146741b30b17c62ce247428
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Feb 2011 06:59:54 +0000 (2 22:59 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:15:05 +0000 (17 15:15 -0800)
treed609e7340ba3ee4617c756c1cb7b23fc58aa24f3
parent9e93a2ffc5ae0c527331a3600f93894547df62ec
Input: sysrq - rework re-inject logic

commit 7ab7b5adfb923978a2cab7bd3fac9ccf7d21cc3f upstream.

Internally 'disable' the filter when re-injecting Alt-SysRq instead
of relying on input core to suppress delivery of injected events
to the originating handler.

This allows to revert commit 5fdbe44d033d059cc56c2803e6b4dbd8cb4e5e39
which causes problems with existing userspace programs trying to
loopback the events via evdev.

Reported-by: Kristen Carlson Accardi <kristen@linux.intel.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/sysrq.c