Skip to content

Commit e46223e

Browse files
tititiou36vegard
authored andcommitted
MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup()
[ Upstream commit 3c1e5ab ] When calling spi_register_board_info(), Fixes: f869d42 ("MIPS: Alchemy: Improved DB1550 support, with audio and serial busses.") Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]> Signed-off-by: Sasha Levin <[email protected]> (cherry picked from commit 8e16eb8) Signed-off-by: Vegard Nossum <[email protected]>
1 parent e890afc commit e46223e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/alchemy/devboards/db1550.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ int __init db1550_dev_setup(void)
581581
i2c_register_board_info(0, db1550_i2c_devs,
582582
ARRAY_SIZE(db1550_i2c_devs));
583583
spi_register_board_info(db1550_spi_devs,
584-
ARRAY_SIZE(db1550_i2c_devs));
584+
ARRAY_SIZE(db1550_spi_devs));
585585

586586
c = clk_get(NULL, "psc0_intclk");
587587
if (!IS_ERR(c)) {

0 commit comments

Comments
 (0)