Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp463207imi; Thu, 21 Jul 2022 04:51:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1spY60uOZCZoqqJOp+1KB/8MtiV8pjvKSqpBw0bYDTmMHo6ux8p+Bylkl6T7yCdUQ4uXCKV X-Received: by 2002:a17:907:a072:b0:72b:57dc:e84c with SMTP id ia18-20020a170907a07200b0072b57dce84cmr38591503ejc.579.1658404265358; Thu, 21 Jul 2022 04:51:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658404265; cv=none; d=google.com; s=arc-20160816; b=rbQyholexJmiUFSa5IwRmwm/17KZ37eQmsL1foYec+QKHsR96OedjsQHuQwj0z9ezr Iv1KNEknsmTjpJs63m+PgiCQlcX7fas5K4c/bsAi7REQWruz5jQfG2aACrJV8ao0nCaj 1wGdKnP9xPZlTDY2o81BkO1VfQV70g6GVJCPL+UjeTPeMmX6Bz7xnYffCYnuz3PaFtib Z2FtCU1n9+IziZlZGkx4fIpwvT4S3G+KyrkTFcRcqWSCfFd6xXrx9vBfCVQNt1iONcLY 4HxQnjyxqtTn/3TccLUYhdWMmUo/2lQ4WNm8Mo9BX9HBhpVpgvxEDpSm8xgu9ym8t/Ab CF+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=KbDMySAesoLGT3nP1qAJ1oZf/wo2kTm7NlDPNaCau94=; b=Vn2rLQn8THmMj8HNLYsZjVeUHFQzkS4oyU/EH5rBs5XdHDUEqKnnjo+7JMNyLo9fPO VKZecAgJRPN7YA+iJWW/O6OWzQ/s8EG5g9dt44EymBWadMRpr+eq+PFdoMkJ2lC/PcU+ jw9TYgisechJVjclnZYB2Hj9Mc0ObG7HAUIF+6wjA+ibFGVsxZov15Q0rOAI9rOwtTsH tConuG2j5gZVHkjLtDFC/jNhl2xoFCSTN6NsdKLRF/0py8fERJ0H+CumQmC8ZRsSsNzt SD9y1HNi+um/1ilvWwigB6+tXEJCbHTrrk/lg/vrAQ+ktXWVaC8ngcm4tCO24CF0a6De H4HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yk6KK4Dz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs44-20020a1709072d2c00b007269661baf2si2217614ejc.475.2022.07.21.04.50.40; Thu, 21 Jul 2022 04:51:05 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yk6KK4Dz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232666AbiGULss (ORCPT + 99 others); Thu, 21 Jul 2022 07:48:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbiGULsr (ORCPT ); Thu, 21 Jul 2022 07:48:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5CCA8213C; Thu, 21 Jul 2022 04:48:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 893E061C61; Thu, 21 Jul 2022 11:48:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FB39C3411E; Thu, 21 Jul 2022 11:48:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658404125; bh=JTMyejOti6w6vxB7oO98F/1xGgPNOKOcBtobYLK8O24=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=Yk6KK4DzU4Ng4AwnWv96vLV7llVZFQ5agAqVWOkqUcqVEs/XFmNm6TtTE/tpnevvf Lu2Yo8MXoC8t9qaMIhXGFS42trekjXqzX+mFiNtlBRKuuaQ71mcD1DbpmBfRlNflZS ZaCZf/7j8LECtUdtD+SMaILQuLKiiYR/+yWkp/BvMxFICZnrp7FIHI8vLDgcaUY8be x7ZvuPJUvT1FVWsmAPLpss956S/AuRscKplHTZr49Dnra+UgyABm6akAL1SXxuThYU 6urpdV44FhLe4ZK+W1YzS710Y0nHAhP2VnkVYHPSvWAD4VDkoeH4ZvK1urPZkhCxA0 ASTVHYIAGGaog== Date: Thu, 21 Jul 2022 13:48:41 +0200 (CEST) From: Jiri Kosina To: Dmitry Torokhov cc: Guenter Roeck , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Nergi Rahardi , "Daniel J . Ogorchock" Subject: Re: [PATCH] HID: nintendo: Add missing array termination In-Reply-To: Message-ID: References: <20220712221705.1847793-1-linux@roeck-us.net> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Tue, 12 Jul 2022, Dmitry Torokhov wrote: > On Tue, Jul 12, 2022 at 03:17:05PM -0700, Guenter Roeck wrote: > > joycon_dpad_inputs_jc[] is unterminated. This may result in odd warnings > > such as > > > > input: input_set_capability: invalid code 3077588140 for type 1 > > > > or in kernel crashes in nintendo_hid_probe(). Terminate the array to fix > > the problem. > > > > Fixes: 2af16c1f846bd ("HID: nintendo: add nintendo switch controller driver") > > Cc: Daniel J. Ogorchock > > Signed-off-by: Guenter Roeck > > Reviewed-by: Dmitry Torokhov > > I'd recommend tagging stable on this one. I did so and applied, thanks. -- Jiri Kosina SUSE Labs