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 5B4E1133435; Tue, 23 Jan 2024 01:04:21 +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=1705971861; cv=none; b=E+IF+xlhmbHcQuVBC7cZDSR+0oEPHFlnVcEFjzxJUMAp+utBKHmtsTRNfr8GbsHkQrI1hLwAwtHe16wKBOfyMoH4svAInxFJEfIH2tOGlPD7cDbZJG5KE899aI5A7X5SNwgwbxZsMFzUgTYj1jgzkK26RVg5TNdvIJe8F2ntfaI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705971861; c=relaxed/simple; bh=BGep821pHVx3Xkj/hkXq4vZzIuu8nvvo9sudOC9Cuyc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FwT+1gaCw8al4xLVw8TqZ9QwVx8OFrvRw7K4hhuferTprfRhxY0ylHNu2R/E7umPSynQA82BpyZuOToLIJT/42b0CNRKKFlB5NEL3igw9jUXkTWBB3TSlVsDjQKv6J4nsxmtxNZtQY0IbUiD3NODlfaxbjfMpMO+55/Jptp5MTE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bDWArx2S; 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="bDWArx2S" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2D37C433F1; Tue, 23 Jan 2024 01:04:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705971861; bh=BGep821pHVx3Xkj/hkXq4vZzIuu8nvvo9sudOC9Cuyc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bDWArx2S8Fu4i7UvWVaFDFmftiExrGkC/QmpfKV/iRwqvvm7OivM2/Quiue05Mo7O yXTJxRSWvaMlVpchqcgL1aMEMPQBdCTcjdsL1Ks9a3zGcF9ErwPbUmzy69GxJOn5FE XKBzM4tb1p6ApUScxjKDsMoUZ9MctQv5e7gplFSY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Christophe JAILLET , Thomas Bogendoerfer , Sasha Levin Subject: [PATCH 6.1 335/417] MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup() Date: Mon, 22 Jan 2024 15:58:23 -0800 Message-ID: <20240122235803.389258686@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122235751.480367507@linuxfoundation.org> References: <20240122235751.480367507@linuxfoundation.org> User-Agent: quilt/0.67 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.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Christophe JAILLET [ Upstream commit 3c1e5abcda64bed0c7bffa65af2316995f269a61 ] When calling spi_register_board_info(), Fixes: f869d42e580f ("MIPS: Alchemy: Improved DB1550 support, with audio and serial busses.") Signed-off-by: Christophe JAILLET Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/alchemy/devboards/db1550.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/alchemy/devboards/db1550.c b/arch/mips/alchemy/devboards/db1550.c index fd91d9c9a252..6c6837181f55 100644 --- a/arch/mips/alchemy/devboards/db1550.c +++ b/arch/mips/alchemy/devboards/db1550.c @@ -589,7 +589,7 @@ int __init db1550_dev_setup(void) i2c_register_board_info(0, db1550_i2c_devs, ARRAY_SIZE(db1550_i2c_devs)); spi_register_board_info(db1550_spi_devs, - ARRAY_SIZE(db1550_i2c_devs)); + ARRAY_SIZE(db1550_spi_devs)); c = clk_get(NULL, "psc0_intclk"); if (!IS_ERR(c)) { -- 2.43.0