Skip to content

Commit 3c1e5ab

Browse files
tititiou36tsbogend
authored andcommitted
MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup()
When calling spi_register_board_info(), Fixes: f869d42 ("MIPS: Alchemy: Improved DB1550 support, with audio and serial busses.") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent 89c4b58 commit 3c1e5ab

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
@@ -589,7 +589,7 @@ int __init db1550_dev_setup(void)
589589
i2c_register_board_info(0, db1550_i2c_devs,
590590
ARRAY_SIZE(db1550_i2c_devs));
591591
spi_register_board_info(db1550_spi_devs,
592-
ARRAY_SIZE(db1550_i2c_devs));
592+
ARRAY_SIZE(db1550_spi_devs));
593593

594594
c = clk_get(NULL, "psc0_intclk");
595595
if (!IS_ERR(c)) {

0 commit comments

Comments
 (0)