From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3A6A749C; Tue, 26 Aug 2025 11:49:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756208977; cv=none; b=g+JeBM7B2iFxhuPtKynxTt7KZGEe1dTMhOoyqUUKsJ9nG1IRB4Z2bmZ+km5mFxsVRfg3G3UNdwWUPS655EwyeB5f11yAmNVq6SiN4VyAU5VMxFrc/Xo+EHMFBKRgxNF/VCP8sbJSmmOeBkaAaT/4wCGXJF3hKvIIDl2Ka24d5MI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756208977; c=relaxed/simple; bh=8Iiy1BrCpYCqtj0ovWzIwDVRo3Wp/Ezk3oUTE3P8uNo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=t6o2Jg7DKTXhsnN6L3w80LeFgR5AZw6H8+FTqBhvkOKaFlWl/1kngv7ah0C2dAFmlHlKmJJmr/IsjCLviFmeWGG9nb4K3DD4fo22iKqyxSC39+hUNpfDrBr8Z0JTxXAenPGWCzZuFI+aqPxWzTVe7SrU2fLJ7h5fAZxHFOxpbrQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Xs+SEHKS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Xs+SEHKS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AE65C4CEF1; Tue, 26 Aug 2025 11:49:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1756208976; bh=8Iiy1BrCpYCqtj0ovWzIwDVRo3Wp/Ezk3oUTE3P8uNo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xs+SEHKSy0t4yWouWmvVW1vjm3vOJ9DhfPd1TG1oeGSKQ3weHZ9Orwc47LRR+d65f ITbfaAfUi4ZCnNvI16wXTDB8aykNh3xPRkT+KP+JYd4B1vK0jqlh35Eq08UG7rqv3+ L0YXMUkzxwDId+kwAFrW5+5+sLzfE/cVxXuQKPRw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Takashi Iwai , Sasha Levin Subject: [PATCH 6.12 318/322] ALSA: usb-audio: Use correct sub-type for UAC3 feature unit validation Date: Tue, 26 Aug 2025 13:12:13 +0200 Message-ID: <20250826110923.741200517@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250826110915.169062587@linuxfoundation.org> References: <20250826110915.169062587@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Takashi Iwai [ Upstream commit 8410fe81093ff231e964891e215b624dabb734b0 ] The entry of the validators table for UAC3 feature unit is defined with a wrong sub-type UAC_FEATURE (= 0x06) while it should have been UAC3_FEATURE (= 0x07). This patch corrects the entry value. Fixes: 57f8770620e9 ("ALSA: usb-audio: More validations of descriptor units") Link: https://patch.msgid.link/20250821150835.8894-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/usb/validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/usb/validate.c b/sound/usb/validate.c index 4f4e8e87a14c..a0d55b77c994 100644 --- a/sound/usb/validate.c +++ b/sound/usb/validate.c @@ -285,7 +285,7 @@ static const struct usb_desc_validator audio_validators[] = { /* UAC_VERSION_3, UAC3_EXTENDED_TERMINAL: not implemented yet */ FUNC(UAC_VERSION_3, UAC3_MIXER_UNIT, validate_mixer_unit), FUNC(UAC_VERSION_3, UAC3_SELECTOR_UNIT, validate_selector_unit), - FUNC(UAC_VERSION_3, UAC_FEATURE_UNIT, validate_uac3_feature_unit), + FUNC(UAC_VERSION_3, UAC3_FEATURE_UNIT, validate_uac3_feature_unit), /* UAC_VERSION_3, UAC3_EFFECT_UNIT: not implemented yet */ FUNC(UAC_VERSION_3, UAC3_PROCESSING_UNIT, validate_processing_unit), FUNC(UAC_VERSION_3, UAC3_EXTENSION_UNIT, validate_processing_unit), -- 2.50.1