]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: cyttsp5 - fix array length
authorMaximilian Weigand <mweigand@mweigand.net>
Tue, 2 May 2023 00:07:49 +0000 (17:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2023 09:16:53 +0000 (11:16 +0200)
commit2085c98d48287254ffa655fa7a5eae451f8f0039
tree68141ade07aec71d841064bd47ec3ed1f917323f
parent5ff3e47659c057270455b6c5ed7cea59f07ae71e
Input: cyttsp5 - fix array length

commit 529de2f1ca3f0898c0d905b7d355a43dce1de7dc upstream.

The cmd array should be initialized with the proper command size and not
with the actual command value that is sent to the touchscreen.

Signed-off-by: Maximilian Weigand <mweigand@mweigand.net>
Reviewed-by: Alistair Francis <alistair@alistair23.me>
Link: https://lore.kernel.org/r/20230501113010.891786-2-mweigand@mweigand.net
Fixes: 5b0c03e24a06 ("Input: Add driver for Cypress Generation 5 touchscreen")
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/touchscreen/cyttsp5.c