]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: ilitek_ts_i2c - add report id message validation
authorEmanuele Ghidoli <emanuele.ghidoli@toradex.com>
Mon, 5 Aug 2024 08:55:11 +0000 (10:55 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 5 Aug 2024 17:39:20 +0000 (10:39 -0700)
commit208989744a6f01bed86968473312d4e650e600b3
treead7160be1c67cbd40fa10575d5cf70805dc79112
parent7d0b18cd5dc7429917812963611d961fd93cb44d
Input: ilitek_ts_i2c - add report id message validation

Ensure that the touchscreen response has correct "report id" byte
before processing the touch data and discard other messages.

Fixes: 42370681bd46 ("Input: Add support for ILITEK Lego Series")
Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Link: https://lore.kernel.org/r/20240805085511.43955-3-francesco@dolcini.it
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ilitek_ts_i2c.c