]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:00 +0000 (15:11 +0200)
commit9a2d7636af44724d77fb3ab8923ab70fb73795c9
treef4b237f5a884bba85b45a66bce492a9fa99c7ef7
parentf448eb55b7ee950a41de10fb733b8035bb7a8125
Input: ilitek_ts_i2c - add report id message validation

[ Upstream commit 208989744a6f01bed86968473312d4e650e600b3 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/touchscreen/ilitek_ts_i2c.c