summaryrefslogtreecommitdiff
path: root/drivers/input/tests
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2023-05-02 23:16:57 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2023-05-02 23:22:34 +0300
commit3516fa162a01f6611c3c129ce9529bdc720d36b7 (patch)
tree9d9cd07b567540b285ba2528ed932c197522545b /drivers/input/tests
parente0f41f836f5e861bdcaf4719f160b62dbb8e9485 (diff)
downloadlinux-3516fa162a01f6611c3c129ce9529bdc720d36b7.tar.xz
Input: avoid calling input_set_abs_val() in the event handling core
input_abs_set_val() can nominally call input_alloc_absinfo() which may allocate memory with GFP_KERNEL flag. This does not happen when input_abs_set_val() is called by the input core to set current MT slot when handling a new input event, but it trips certain static analyzers. Rearrange the code to access the relevant structures directly. Reported-by: Teng Qi <starmiku1207184332@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Link: https://lore.kernel.org/r/ZFBg379uuHjf+YEM@google.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/tests')
0 files changed, 0 insertions, 0 deletions