Input: sysrq - rework re-inject logic
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Feb 2011 06:59:54 +0000 (22:59 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Feb 2011 07:02:23 +0000 (23:02 -0800)
commit7ab7b5adfb923978a2cab7bd3fac9ccf7d21cc3f
tree252719cab248978672597586560353fb1c95b6d0
parent19e955415398687b79fbf1c072a84c9874b8d576
Input: sysrq - rework re-inject logic

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>
Cc: stable@kernel.org
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/char/sysrq.c