diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-01-10 19:07:36 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-01-25 15:27:45 -0800 |
commit | 2504864be6fdcc2829babd01d22d3061fd21a9ac (patch) | |
tree | a9b01339b156c7a994a3d08003efbd3ee1a926f7 /drivers/base/node.c | |
parent | 69e9a6944df730353fb350057c37918fae2746ac (diff) |
MIPS: Alchemy: Fix an out-of-bound access in db1200_dev_setup()
[ Upstream commit 89c4b588d11e9acf01d604de4b0c715884f59213 ]
When calling spi_register_board_info(), we should pass the number of
elements in 'db1200_spi_devs', not 'db1200_i2c_devs'.
Fixes: 63323ec54a7e ("MIPS: Alchemy: Extended DB1200 board support.")
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>
Diffstat (limited to 'drivers/base/node.c')
0 files changed, 0 insertions, 0 deletions