Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5343628rwr; Mon, 1 May 2023 04:31:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ71N8koLhniGxYSveIFT53JFC/CZ0LrWfADh1VM9YoEqCAFBogrJSknxAgddPVxGLf18BIq X-Received: by 2002:a17:902:b588:b0:1a2:a8d0:838e with SMTP id a8-20020a170902b58800b001a2a8d0838emr12011805pls.61.1682940678335; Mon, 01 May 2023 04:31:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682940678; cv=none; d=google.com; s=arc-20160816; b=Gbqrcr4mzQLSlUmOafFKISAjPEoNdrh1lADju1S7Zy6AviB1fL6pWTZsyJUogGcTR8 fsFBqVPzjUdO4F4M/TCMhzM8MS33vYePW0wWTj6hZMbDWLo5J0BzXm2f2lMq+YdH4xSw D1YaRJtN4savEG2sBKBOytNvnfE2XvJf8+2Gkx9bGnGvGqUUeLc4WefYHcBV5x8643FZ b/HyTtl8vMpFd6vPVkT5maGDnyu8V+zknlkCpXZxv0tvRfXzoYgOcp2xkTchEapoWa8f ewxecaA+XNDqUMkfCpBLgHmByt+NvvRZZr1FmWnqeLHfFi2K+kmef3CFU7nirZLxtebe EBsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=288MhYgfNYXvv0PNJ/I/5o82bbNqVnvYDweo46CNSfU=; b=BmFmWiglLRtC+a3VPQWcXpOhzYgF58EUuGi8XeRd8ebgluH0s9zhZN8x5ivrXLXMpz RAXu7ZVl12uwZkcR3DIF7CR//ZUV/VZHqUIxR3Z4TAbrAexsuBj6MzkmMZcLbAqWy4+w SL3VdQ6hUEu43s1/aIMdh6Z/yZVWyfwbsEvbQXM2uAVhriayvE3tKJ+o8IvLqJrWGBbE vpl901vtRsfQfd/B1V/Xr1Lhc48Zw0Nf7FJlk6Z/sCc4baS+CZjGQOkn+U7F/w0nnN/O 4EAj7Ipt7WIwiovk0q+P7jLByNABz2N7JV+zkQDaZHLExBFUCTvViyPMFhg7ErKc/BAk kUhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l20-20020a170903005400b001a66b9d5e19si20385086pla.329.2023.05.01.04.31.07; Mon, 01 May 2023 04:31:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232261AbjEALa4 (ORCPT + 99 others); Mon, 1 May 2023 07:30:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232159AbjEALay (ORCPT ); Mon, 1 May 2023 07:30:54 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B872510FA; Mon, 1 May 2023 04:30:53 -0700 (PDT) Received: from koko.localdomain ([213.196.213.13]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N7iKo-1qNbbV2mws-014k2Q; Mon, 01 May 2023 13:30:43 +0200 From: Maximilian Weigand To: Linus Walleij , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Maximilian Weigand , Alistair Francis Subject: [PATCH v2 1/6] Input: cyttsp5 - fix array length Date: Mon, 1 May 2023 13:30:05 +0200 Message-Id: <20230501113010.891786-2-mweigand@mweigand.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230501113010.891786-1-mweigand@mweigand.net> References: <20230501113010.891786-1-mweigand@mweigand.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:p/5GtVKUJPnHQuTfJuon7vGN4jRyuRUKN4lAKxXfbccB7EmDnaC 3KBBK8At5C65x/HXFnSQmx/Nrl322WQXn5iKsdvENkEbpQGOByUN+Kt2vx+hSzEP0gL8pg0 M6BmLjOPt0mNnx1qw+qemgDs049TLxzDBNCsE+AnampUPKQo1Z39sxj7E15SPMZZh5sd7ou S8pK4sHuSP3YBtA4n8Fvw== UI-OutboundReport: notjunk:1;M01:P0:sk8asawXIvw=;XQvol0O474AgmlBRt3WdtGpLEJo 2uHuXyIzIE9YLtQ3CFaWbHweOqriHM691A+gUdkwmZnzwhHyKipG+DTVx+Rj91ruz4sSGj5IT oxtnF7WQvm/TEIvl15fP78Hlj+E5NIndxwxWGOuVQpawfYdP3Boc4MLkAirMOkiSDl5L/bo86 lsxIYDQr7lpPMGzWACdEMuqsPAapHCSSpYC5QaUUkG+1e8023a35GuvwYBUVlzxwn88h0mA03 K7DIBFyrKmu2/jIYlJKeSZnUHSEokpFs/tFBY03Q55SVJfi65DLrxrgm5pKWvzwSiNXNpD//x sMNOx7gIliDMV0yTOqM0WwId4RkTkTZofQIN5sI/VQAnPe3cT0tIGITzWncto9SVlgsdd8Eoe DEiaHGtdaxhVQgExvNFoG8B7y2aZL5njjybfm+MDaSxnx28kAADDy7cXV2gZt3uRA6K94Bi1N hHSWyMKQsJl+jyfCPgH/KY01T9wH1rgFkPeACEbfgm9yZhWQzC337Vp5LmasUO0bD8ko8J5bH H98/3Jbj4bZUO3lBBPWfNuWTkqhGSEiF1em4j/63Od5iTh+G0RCXOXlGH9/WAbK/eNZ2Qd1yJ 3+pEC25KWjlf2TXfPQHEZNU4ZQ2fHD2r4GoGUjsvuQhw5GqVGh5g8HyS23uMv8d/G7PETFegc g7mpKDeY/gbJJvbQoqwoMebRMHIO3FSU2zeCNbOQAQ== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Alistair Francis --- drivers/input/touchscreen/cyttsp5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/cyttsp5.c b/drivers/input/touchscreen/cyttsp5.c index 30102cb80fac..3c9d07218f48 100644 --- a/drivers/input/touchscreen/cyttsp5.c +++ b/drivers/input/touchscreen/cyttsp5.c @@ -560,7 +560,7 @@ static int cyttsp5_hid_output_get_sysinfo(struct cyttsp5 *ts) static int cyttsp5_hid_output_bl_launch_app(struct cyttsp5 *ts) { int rc; - u8 cmd[HID_OUTPUT_BL_LAUNCH_APP]; + u8 cmd[HID_OUTPUT_BL_LAUNCH_APP_SIZE]; u16 crc; put_unaligned_le16(HID_OUTPUT_BL_LAUNCH_APP_SIZE, cmd); -- 2.39.2