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 BCF35328B75; Wed, 8 Apr 2026 18:33:19 +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=1775673199; cv=none; b=IIY+nxWMC+wh0BQTRA096OxrHVs9f+S6hni+a3fqpDYiOa1B3QcIgxuTDWKTqmYY3LPZEGc5NVz6QcWbNY4l+T+FilntSgvOUKIZdHClHvBdb+GEWqMXm4f27BQ70eW+V4yucUOjJkIFhpzFU+p1rW7UDpEa7S60RpOeeOSw/aY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775673199; c=relaxed/simple; bh=3hH7qNUyWXDMBE9WX/U4g8cI4J1tiz/N93ojkrIhxj4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PjxOzuqhWv2QeGcISz7zeUqwmbsgcsE3ZgiSZVUzO9H2PlnW0ggcYVIoc+9PehNfR4X2mS4uBl4IvJXw2Uua43g0/Po0sJgvEejWy/A/TnbCTjpz6NBx2567iIfKaY8FpUTG00W84xmzRrg7QiZtEYmpA1pjIH3+DCeEScCwtng= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KG7KRJnu; 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="KG7KRJnu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54A6EC19421; Wed, 8 Apr 2026 18:33:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775673199; bh=3hH7qNUyWXDMBE9WX/U4g8cI4J1tiz/N93ojkrIhxj4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KG7KRJnuTrbtnA9b5OeX3sJ35IkNxb4+blSgOuwaNOQ3rfjCspfjDA/9okaNODuMS woRGKNnEA/fDJW9/sm2kDKI1G/R/Tdfin8qwahSLIEv+six8fAA5HRF00yXXPJbHSc dx2TQSy8n7Wc2LqwD18xx7Pj0UIMK3NxpHoMod20= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Takashi Iwai , Karsten Hohmeier Subject: [PATCH 6.18 138/277] ALSA: ctxfi: Fix missing SPDIFI1 index handling Date: Wed, 8 Apr 2026 20:02:03 +0200 Message-ID: <20260408175939.029135148@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260408175933.836769063@linuxfoundation.org> References: <20260408175933.836769063@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Takashi Iwai commit b045ab3dff97edae6d538eeff900a34c098761f8 upstream. SPDIF1 DAIO type isn't properly handled in daio_device_index() for hw20k2, and it returned -EINVAL, which ended up with the out-of-bounds array access. Follow the hw20k1 pattern and return the proper index for this type, too. Reported-and-tested-by: Karsten Hohmeier Closes: https://lore.kernel.org/20260315155004.15633-1-linux@hohmatik.de Cc: Link: https://patch.msgid.link/20260329091240.420194-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/ctxfi/ctdaio.c | 1 + 1 file changed, 1 insertion(+) --- a/sound/pci/ctxfi/ctdaio.c +++ b/sound/pci/ctxfi/ctdaio.c @@ -119,6 +119,7 @@ static unsigned int daio_device_index(en switch (type) { case SPDIFOO: return 0; case SPDIFIO: return 0; + case SPDIFI1: return 1; case LINEO1: return 4; case LINEO2: return 7; case LINEO3: return 5;