]> git.baikalelectronics.ru Git - kernel.git/commit
Input: do not pass injected events back to the originating handler
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 9 Nov 2010 05:51:25 +0000 (21:51 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 11 Nov 2010 09:01:26 +0000 (01:01 -0800)
commit3fd912b86c2ba7dac0750c0f9b3a3f0864553c8e
tree18dcde03df9d44a7e91a20472449f1f95b57da25
parent75d674476498dad08aeb11c0f074a45cc0891220
Input: do not pass injected events back to the originating handler

Sometimes input handlers (as opposed to input devices) have a need to
inject (or re-inject) events back into input core. For example sysrq
filter may want to inject previously suppressed Alt-SysRq so that user
can take a screen print. In this case we do not want to pass such events
back to the same same handler that injected them to avoid loops.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/input.c