aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/synaptics.c
diff options
context:
space:
mode:
authorJeff LaBundy <jeff@labundy.com>2022-03-20 21:55:27 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2022-03-20 21:59:42 -0700
commit409353cbe9fe48f6bc196114c442b1cff05a39bc (patch)
tree943674074c63d4dc8c72512007b10e22abde3017 /drivers/input/mouse/synaptics.c
parentInput: iqs5xx - use local input_dev pointer (diff)
downloadlinux-dev-409353cbe9fe48f6bc196114c442b1cff05a39bc.tar.xz
linux-dev-409353cbe9fe48f6bc196114c442b1cff05a39bc.zip
Input: add bounds checking to input_set_capability()
Update input_set_capability() to prevent kernel panic in case the event code exceeds the bitmap for the given event type. Suggested-by: Tomasz Moń <tomasz.mon@camlingroup.com> Signed-off-by: Jeff LaBundy <jeff@labundy.com> Reviewed-by: Tomasz Moń <tomasz.mon@camlingroup.com> Link: https://lore.kernel.org/r/20220320032537.545250-1-jeff@labundy.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/synaptics.c')
0 files changed, 0 insertions, 0 deletions