Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7646035rwl; Thu, 23 Mar 2023 07:05:02 -0700 (PDT) X-Google-Smtp-Source: AKy350YmlS9APxLXLzE+Yd76Gbw8Un3WfJJQgqrs2dA2gmPbA5zE+Fib8Hcwa7XYQKdYLFddaRGI X-Received: by 2002:a17:902:d492:b0:1a0:57df:861c with SMTP id c18-20020a170902d49200b001a057df861cmr6449783plg.1.1679580302098; Thu, 23 Mar 2023 07:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679580302; cv=none; d=google.com; s=arc-20160816; b=saI/SyUOYg2S2Uy5h/JmI5kFzhB0moOOepPoThQH/oXI1rfeUQ5GwPlIapgp1OzDEm zFv1MZOkb8/WxkNmTZQV/M9hf9w9AVRyFeN7xdWRonHazp4DISK0IjWMqtoMDXUx+htz XeYHuEsmXb/5UEUSg2Sniy1dI2oJIlhyDE/+Pob7mEVsfvPo+jPramHeLKDjKLB5UY4v +dHtjiO+nYatcgNmsh8n5qXyurvH6qTtf2migUBLtH1ATK26CsnevdUVku/1YnFlpQdi 9DpxpnAYyR7ycAguL2CWZGwWR74waYiQTkjSH7V24UjVsnosisM9T56/OxGgysT62rcu zl7A== 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=oc12xCIdT13qayTHzAkqCG+3OvWC1Gu0bqrMGkZc1EU=; b=XjhE7Qwl+l+yVx6VvcgyXGWKQrCnMK7U2aQGNQW/3CjZg6R1DKfkJ1g427yf9r0Ftj LZY+cHDKrPRzpIxzARuN542A8REKXeL6tc0gLy8/2ZrGODNBBTfAYPjuWeRMLPP6OMAw iWMQ6+v7KzhmV1TzkS2QB4C0BDdZIV8k/NJj6oa4XKcUDUxrWAY80APGDhERfaiRMe+8 AlJ1Kx8LXuYozdNgF1oaseW8YGEbH27TnzXrUkG51wXms4YStyNKevG5IJSfF5yQQEe+ ASsgGUaF0ER04JZOnShVYdSuA6PXUz1aYpd09PYtkDd6qjfMSRzBczNjUu+WjEKxNf+d 7qPA== 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 k4-20020a170902694400b0019ace4c5bd5si17298959plt.513.2023.03.23.07.04.48; Thu, 23 Mar 2023 07:05:02 -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 S231545AbjCWN6D (ORCPT + 99 others); Thu, 23 Mar 2023 09:58:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231283AbjCWN57 (ORCPT ); Thu, 23 Mar 2023 09:57:59 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 398C5469D; Thu, 23 Mar 2023 06:57:58 -0700 (PDT) Received: from koko.localdomain ([89.1.213.94]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MkpnF-1qL2AL0Tsd-00mIsU; Thu, 23 Mar 2023 14:52:46 +0100 From: Maximilian Weigand To: Linus Walleij , Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Maximilian Weigand , Alistair Francis Subject: [PATCH 1/6] Input: cyttsp5: fix array length Date: Thu, 23 Mar 2023 14:52:00 +0100 Message-Id: <20230323135205.1160879-2-mweigand@mweigand.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230323135205.1160879-1-mweigand@mweigand.net> References: <20230323135205.1160879-1-mweigand@mweigand.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:+1DhUNDo+nzdmkzCeHmfEL2un8XA8aBChZLaJgqifXsrgo4Te4B J5cBDz1wUTYE4+BoWAp0Ox3gGnMjI3r9ZvVSGaJzDcB1ggXnvLAg0wa4NMLW+xmJsjEFCG/ wLApC9WEG4fgdMidDvNzIgR4XJax7NARqji3olDNI9yjsPPcrbjCl9JITFpy9sgBhpYnxHu xdZxYy6nmkvdAYN4VfW8A== UI-OutboundReport: notjunk:1;M01:P0:H8F03Lc5QDc=;imrDxUuizjS7jnaLTI+DiXs7AMB Wg/llIbBSSsogOtz3A7aVAgd41Ir7eIk5gE/84XBo6B0G6y/RIQi/SUehXErAf4OSAyfJfc5E DW+9f+YJ7DtUzZOrhJ8V8orI+WVC92FqQ9XD6YResI+Yxo9qEktFocDLR6k6aLaSLlqZBKx7W jUSGiujp3IhQvyjY3qMCt7UQp7ildG+W9oI8bJV9hM46+3eiVjkrO/nc8xvYjCz/faup1e/NI i694ixXZQH/qMrTEw9ETm1mcJ9ug4XIbVrlhDJEU+sqoMlxd038E0b5cyohK80bQmqSsBEWzE 1m/s1ZnNkf5A1zp/KDIXB/yatpe0sENLae1AL2w6WldusmAa2eCxHkfBnA1oWAEtpTZ8AXXXk /ak06ztseW+vMM2ajcQh0zqI4ixJ4IGvrzbo8/jMqV7xD9TSZSn3Hjvhc3V+1bHTg+sj6BQeY OGGetF3c5u+1IPUTA4ENQPMfnqAgUz+hELAmCf1wE1e4lq9Nt/cZ6ux63Mi+QRKvpzF0WXr6Q x7M6UJ0ugI0wovZdR9L8gtIo3uS/AWVBvxKPyVxIbAF8v5f+n/yzHctQJbcfyTe2EFDuoXB/q p6BsZi7/mW8JZ0BjfEGOhoRAd03AgEq8AktUxYttFjo/BVww9qgKEQOJH076Dnr/4nKoCCdYX WvNqHLlBvNWCNQG9a+fyNkwyGNsOzU3z70cvPh+iHA== X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 16caffa35dd9..42c7b44e37f8 100644 --- a/drivers/input/touchscreen/cyttsp5.c +++ b/drivers/input/touchscreen/cyttsp5.c @@ -559,7 +559,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