Commit 3c1e5abc authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Thomas Bogendoerfer
Browse files

MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup()



When calling spi_register_board_info(),

Fixes: f869d42e ("MIPS: Alchemy: Improved DB1550 support, with audio and serial busses.")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 89c4b588
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)) {