From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796391009; b=jYqXUmHYiJZpnc4mXJki1qnt5qt6NbCH9v4NE9BSFpoC0ThbNXej1JnOt5bqVUcYUB/r mLNu/4KmtSkitmcE/Nc3kOgqvuQDWKd7HSvltze0XEQccPzxQYhhLPWO8jYMG3Ej6U277 YoGKTVrIUUwgpPFUMW1a1GSR1Kp0VS7m5zYK4jx2HXakDDIKR/TRRMVr8pXfQand3ytX+ WjDk1STJGyBJajdnmEBepQKktm5K6moqY4KibGlNI5D7iy7qrNiLLj7HdHv7yd8ecB0yX +0EARZOaqjhQIVQizol1mkJG2yhNlwoa1cScr9xTkVVpdsuw6WXLRpZsJK1xUSBXbDA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796391009; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=9pY/njbKdgw2pFsvCc2pHdD5qi/4p7zqRZWvNaSazW4=; b=Iglcr3EDePKNzjUdjzxRLzB3fQ+b+w8vm3kJ63MPZzMDEepJBAe6z8QJ/1P9Uz3SqETy BSYMGnZjcKn0DvOVacX9z9GVXDrPtJh8PnyqtMP7Na5XAiSofPYqDOGdnt29nbouaIfdN PEU14fDkzWCozRfrKADE8skPFkTtsOYwStTeHJwWB0xb22WhGFkMs9RNmo7LnpfdXJeuh sWYJBR3jJqFfybBrDnuRc/WL09awXLZp3yH6TJ1G8ItMa14Q2XzlTmX46t5Q7N3vP47AU afaE9FifA5d2nLVnzXbRkVVaAFM3LDuuYR7LPOfgTYQiuDiVKiE/GQV+8lJWIcmPbXw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FtI2fYnL; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8087606A333 for ; Fri, 4 Dec 2026 13:30:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FtI2fYnL Received: by smtp.kernel.org (Postfix) with ESMTPSA id F29611F00934; Fri, 4 Dec 2026 13:30:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796391009; bh=9pY/njbKdgw2pFsvCc2pHdD5qi/4p7zqRZWvNaSazW4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=FtI2fYnLkUJRw4ilhyxVAbI6MMXsJSlJ28gNjKjIOPzMlRf9jcmZjbasSD1yjyBW3 NB/hXiwV0wQRMWlUqSNrRMWMGwh79rUVF1TUKBUXFpjPc113XQ5ZB2owK5d4A9iMGI E7XbCaLMicBHK0BIrDMR7a2zbXj9rtlvheVZt3B0hF11dVQmJs+uW+7d33MvMHgmaN qiRroEzI/YO59n74u51qcwCDVJtgCOBg/zTzzYfQLz5YHQ6PytFuTzN27twNjOHHp4 8lM0itSZn+SkL7+Bl5ePTiGOfQwbyHLZoqqU7gcPUaQODgqssL2SBz5KoA8vF1ly3X xwA6LaqsZY9fA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 3/4] ASoC: codecs: wcd938x: check component match allocation Reply-To: sashiko-reviews@lists.linux.dev To: "Zhiqi Zhang" Cc: linux-sound@vger.kernel.org In-Reply-To: <20261204125837.81419-4-zhiqizhangg@gmail.com> References: <20261204125837.81419-1-zhiqizhangg@gmail.com> <20261204125837.81419-4-zhiqizhangg@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 13:30:08 +0000 X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] ASoC: wcd938x: missing Fixes tag for bundled us_euro_mux cleanup fix -- commit da3398842c3a0e9bb3ae370be1a207b0005ebbee Author: Zhiqi Zhang > ASoC: codecs: wcd938x: check component match allocation > > component_match_add_release() reports allocation failures by storing an > ERR_PTR in the caller supplied match pointer. The wcd938x helper ignores > that state and can later pass the error pointer to > component_master_add_with_match(), which dereferences match->num. > > The failed add also does not take ownership of the phandle reference > passed as compare data, so the current rx or tx node must be released by > the caller. > > Check the match pointer after each add, drop the node reference that was > not transferred to the match entry, and return the allocation error. > > The codec probe also selects the optional us/euro mux before adding the > SoundWire component matches. Route later probe failures through the mux > cleanup path so the selected state is released when match allocation or > aggregate registration fails. > > Fixes: 8d78602aa87a ("ASoC: codecs: wcd938x: add basic driver") > Signed-off-by: Zhiqi Zhang [Severity: Low] This patch bundles two separate fixes: the component_match_add_release() check for 8d78602aa87a ("ASoC: codecs: wcd938x: add basic driver") and the us_euro_mux probe-failure cleanup for eec611d26f84 ("ASoC: codecs: wcd938x: add mux control support for hp audio mux"). Bundling the us_euro_mux cleanup will cause merge conflicts when backporting the match-allocation fix to stable trees that predate us_euro_mux. Should the mux cleanup be split into a separate patch, or at least include: Fixes: eec611d26f84 ("ASoC: codecs: wcd938x: add mux control support for = hp audio mux") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204125837.8141= 9-1-zhiqizhangg@gmail.com?part=3D3