MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 10 Jan 2024 18:09:46 +0000 (19:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:35:50 +0000 (15:35 -0800)
commit69bec5f534caac2d59d2146b5042d18688616eee
tree9746165a28c050b2793ae11d8bbd1d8c109cac69
parentb6e72854e019dc5f7dc8f27f344f95914802207e
MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup()

[ 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 <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/alchemy/devboards/db1550.c