Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3316619pxj; Tue, 11 May 2021 01:29:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyonD2cZFNOtLmC9G2RI1yMJ77l/6/r2lxO7BrAtZAQVtDB0lBipDLyeUkt6jEVK9d1KCYS X-Received: by 2002:a05:6638:101a:: with SMTP id r26mr25629637jab.15.1620721759365; Tue, 11 May 2021 01:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620721759; cv=none; d=google.com; s=arc-20160816; b=imSiwHol7svM4WBmAZ/QESKpfy2zH+atugS2mPWTD+uT15rX153zc5UTHXbL8hUX9j Q6MTFQWh/F50xA3t5bNWi3tlXpPUBiLuVX6FCVRRTs77C9HnsdWoBKzQ/PSnrfr4RjQ7 lhkJQXljaEO2Q6bvzD6MdTOGhD4l3SZPh5LsTdcPfX7jpfHPYAfz+4WsKLvTIV2PjxYC zUtVjap26+Anz/tcX8O4Wo2Y0IZ/n0BundYyaY1V5E/HEPPy34aVoTvlxBOMhbrxMj7t uy6WU2j8xB7gOensb523ekUWm0fiJOBB4d0438sHtZE/zYKUBk6ycQavcSxYYz43tqKn dwgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9/FkaSNGBo5AI9y3Lrs0o9pB6xmhspY+Hj6izT8UCy8=; b=akWJx6JnAJqFUNLCIEtKgIuCRc0XqBDX9lqrLusD+RRwZiA9QbkIbBHnVR+jmx5v2a /NK33n+sSBs6vOsuhf+88DUmqTVGLnZaHMFDSc3glPq5B2oc+QiHuj0CTql/PrcJ6NvX UJ3rOqkRDvTU62uyQJWrAc4Vf7UNYmcmspTFKdEiFdwBgJPFekblPk9bcYIN407Bmrby WjHrQ9tnayih0enKGhCj20UHscVh/PNU8S/wwdTAwn6RJMRL5//SDkOnf9mNxOElAyla 1CjS+UEuWxrMN8+XVx9ch7CzYBSCrvaNIXtb4a4HLWaHw7r2HKlPqSTMpvlI8M/ohRAN ATXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GggvETJ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x7si19928126ilv.97.2021.05.11.01.29.07; Tue, 11 May 2021 01:29:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GggvETJ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231240AbhEKI3F (ORCPT + 99 others); Tue, 11 May 2021 04:29:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:37998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230338AbhEKI2x (ORCPT ); Tue, 11 May 2021 04:28:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 31A296147E; Tue, 11 May 2021 08:27:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620721667; bh=l8Z/OzCfeWsNmqmpOZGd1liyMDpNo7gr8CIy6SCuWuI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GggvETJ49ghxR3jGggzJ6p0bycd1w39dMmZ8r0464V/YAjOVjLugxBEg0pbx3NErg xgXpyHzFVlxdtoUmkYJIUt625ivDU8vxPgj49BZJkhxEHgtvTF+AgAqmWi9UOKTb3S SNTXlGD0RK5UeKscWvKKaYLBZZoZQWx6mGp2srF6uqpZdssFeNUN06VfQLHh0g7BKW Er2hyoNNPzF6i6L08ICk8J0Xp07+l2OH5x+Kb/SiHES3bj8aeYZAg1sSC0bayHi7bq kdjnbYpQzAZy1tml+3e2hmcRhEnNEjOfdIo4L7w9RsvLtvOl5C8clIlXCQC6fIj8jo uEPyQwLeLwRLg== From: Mark Brown To: lgirdwood@gmail.com, srinivas.kandagatla@linaro.org, perex@perex.cz, bgoswami@codeaurora.org, trix@redhat.com, tiwai@suse.com Cc: Mark Brown , linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: Re: [PATCH v2] ASoC: codecs: lpass-wsa-macro: handle unexpected input Date: Tue, 11 May 2021 09:25:51 +0100 Message-Id: <162072058168.33157.3176018576144440940.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210430142117.3272772-1-trix@redhat.com> References: <20210430142117.3272772-1-trix@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Apr 2021 07:21:17 -0700, trix@redhat.com wrote: > Static analysis reports this problem > > lpass-wsa-macro.c:1732:6: warning: Array subscript is undefined > if (wsa->ec_hq[ec_tx]) { > ^~~~~~~~~~~~~~~~~ > > The happens because 'ec_tx' is never initialized and there is > no default in switch statement that sets ec_tx. Add a default > case that returns an error before the array is accessed. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: codecs: lpass-wsa-macro: handle unexpected input commit: 58f01c7fc81baced84f237554d56847e17b5d730 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark